Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNLP and Jar versions

 
leliel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
leliel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set the version of your jar using the "version-number" attribute in the Manifest file included in the jar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic