B4J Question jnlp how to make?

Douglas Farias

Expert
Licensed User
Longtime User
Hi, i need to make a .jnlp of my b4j app.
how can i make this?

dont found any tutorial about this on forum
https://java.com/en/download/faq/java_webstart.xml

i m tryed to make this but not sucess.
http://iddesenvolvimento.com.br/pedido.jnlp

B4X:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="pedido.jnlp">
<information>
<title>Pedidos Pet</title>
<vendor>pedidos</vendor>
<description>Notificador Pedidos Pet - Alerta o usuário sobre novos pedidos</description>
<offline-allowed/>
</information>
<resources>
<jfx:javafx-runtime version="8.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
</resources>
<resources>
<j2se version="1.7+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="http://iddesenvolvimento.com.br/pedidos.jar"  download="eager" main="true" />
</resources>
<applet-desc width="600" height="500" main-class="com.javafx.main.NoJavaFXFallback" name="pedidos" >
<param name="requiredFXVersion" value="7.0+"/>
</applet-desc>
<jfx:javafx-desc width="600" height="500" main-class="b4j\example\main.class" name="pedidos" />
<update check="background"/>
</jnlp>

OBS, i m signed the .jar with auto sign comands

keytool -genkey -keystore chavepet -alias chave
keytool -selfcert -keystore chavepet -alias chave
jarsigner -keystore chavepet pedidos.jar chave

i m will buy the signing certificate from COMODO
http://codesigning.ksoftware.net/

But first i need to know if B4J its compatible with .jnlp files.
@Erel can you help me pls?
can i buy signing certificate and use on my .jar to make .jnlp files?

i dont found tutorials and any question about this on the forum.

exemples of .jnlp
 

Attachments

  • 11.jpg
    11.jpg
    75.2 KB · Views: 332
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
i will try, My client needs in jnlp format.
i think its more easy, only enter on website link, automatic install and done.
and for updates, only send updates for the host, when users enter on link every day the jnlp automatic check for updates and make updates.

i will try what u say thx man
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Here the result (can use the link, autimatic will download the .jar but not will run)
http://iddesenvolvimento.com.br/pedir.jnlp

casa.jpg



B4X:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="pedir.jnlp">
<information>
<title>Pedidos Pet</title>
<vendor>pedidos</vendor>
<description>Notificador Pedidos Pet - Alerta o usuário sobre novos pedidos</description>
<offline-allowed/>
</information>
<resources>
<jfx:javafx-runtime version="8.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
</resources>
<resources>
<j2se version="1.7+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="http://iddesenvolvimento.com.br/pedidos.jar"  download="eager" main="true" />
</resources>
<applet-desc width="600" height="500" main-class="com.javafx.main.NoJavaFXFallback" name="pedidos" >
<param name="requiredFXVersion" value="7.0+"/>
</applet-desc>
<jfx:javafx-desc width="600" height="500" main-class="anywheresoftware.b4a.keywords.Common" name="pedidos" />
<update check="background"/>
</jnlp>

this video show perfect what i need, and the same problem i have, and how to fix, but for me dont work this fix

Note: this video its for a java app without certificate, i will buy the comodo certificate, need only know if this will works with b4j
 
Last edited:
Upvote 0
Top