Author
JNLP and Jar versions
leliel
Greenhorn
Joined: Mar 25, 2003
Posts: 11
posted Mar 25, 2003 07:01:00
0
Hi, how do I version a jar file? If I add version=0.1 to my JNLP file, the jws client write something about a nullpointerexception and the version field could not be found ?! hope somebody could help.
Maulin Vasavada
Ranch Hand
Joined: Nov 04, 2001
Posts: 1863
posted Mar 25, 2003 14:34:00
0
hi Patrick can you please post the jnlp file here? what you exactly mean when you say you want to "version a jar file"? i've never versioned it...so little more light on that would be a great help for further thinking... regards maulin.
1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
leliel
Greenhorn
Joined: Mar 25, 2003
Posts: 11
posted Mar 31, 2003 03:53:00
0
Hi, this is the jnlp file:
<?xml version="1.0" encoding="utf-8"?> <!-- JNLP File for SwingSet2 Demo Application --> <jnlp spec="1.0+" codebase="http://172.20.1.26/jaws/jAR/" href="jAR.jnlp"> <information> <title>jActivityReport</title> <vendor>TeleMedien Verwaltung IT</vendor> <homepage href="doc/index.html"/> <description>Demo Application</description> <description kind="short">A demo for the Graphical User Interface.</description> <icon href="images/icon.jpg"/> <!--<offline-allowed/> --> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.4.1*" href="http://java.sun.com/products/autodl/j2se"/> <jar href="lib/jAR.jar" main=true /> <jar href="lib/NWSess.jar" /> <jar href="lib/kunststoff.jar" /> <jar href="lib/ldapjdbc.jar" /> <jar href="lib/njclv2r.jar" /> <jar href="lib/NWSess.jar" /> <!--<nativelib href="lib/NWNative.dll"/>--> </resources> <application-desc main-class="de.waltertelemedien.java.jActivityReport.jAR" documentBase="http://webettl01/jaws/jAR/doc/index.html" name="jTaskReport" /> </jnlp>
there's an optional tag for <jar href> named version. I thought about adding the version, so webstart would only leech new files through the net.
Juanjo Bazan
Ranch Hand
Joined: Feb 04, 2002
Posts: 231
You can set the version of your jar using the "version-number" attribute in the Manifest file included in the jar.
subject: JNLP and Jar versions