• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JNLP and Jar versions

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It's never done THAT before. Explain it to me tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic