This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Webstart doesn't always recognize new jars available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Webstart doesn Watch "Webstart doesn New topic
Author

Webstart doesn't always recognize new jars available

Scott Presley
Greenhorn

Joined: Apr 15, 2003
Posts: 25
I've been running webstart for a while in my test environment but we want to make the move to our production environment. I been having a problem with webstart not always recognizing that new jars are available.

Here is my process:
1. make changes to my application code
2. run ant to compile, jar, and sign my application and resource jars.
3. move the jars to the appropriate folder on the server, overwriting old jars
4. navigate to the web page that contains my launch button (link to my jnlp file)
5. first time launch button is clicked, application kicks off without updating jars.
6. close application and navigate back to the web page and click the launch button again.
7. webstart recognizes that updated jar are available and downloads the new jars before starting my application.

I did some poking around on the net and found a few resources, specifically this comment from the webstart FAQ at sun:

I don't want to rely on a server timestamp. How can I specify a versioned JAR and how can I get incremental updates of JARs?

Java Web Start supports versioned JARs and incremental updates. You can specify exact versions of the JAR files you want, instead of relying on timestamp information to determine if an update is available. Using version IDs also allows you to provide incremental updates from one version to another. See the JNLP Specification or the Developer's Guide for details.


I really haven't found anything in the developer's guide to detail how to version jar files. Does anyone know how to do this or at least know where i might find a resource that could explain this process?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webstart doesn't always recognize new jars available
 
Similar Threads
Automatic Updation of Client side Jars & other resources
missing from the launch file: jnlp
Signing JNLP - Where does JNLP-INF directory go?
WebStart
How can I make use of WebStart?