aspose file tools*
The moose likes JNLP and Web Start and the fly likes Web start still loading old App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Web start still loading old App" Watch "Web start still loading old App" New topic
Author

Web start still loading old App

James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106
Hi,

I'm trying out the Web Start auto loading new application feature.
After putting in a new jar file in my web server, it still load the old version unless
I remove off the application at the Java Cache Viewer. I'd even waited
for 30min incase it only load after certain interval.

I'm using this sample application.
http://download.oracle.com/javase/tutorial/deployment/webstart/examplesIndex.html#DynamicTreeDemo

I just change some labels to make it a new version.

Is this behaviour expected because from what i read, Web Start should be
able to detect and load new version. Or is there any configurations that I need to do?



Please advise.


Thanks in advance.
Sunil Manheri
Ranch Hand

Joined: Jul 07, 2004
Posts: 32
Under resources tag you need to set the version attribute:



TechMindViews - Technical Notes
James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106
Dear Sunil,

The problem is fixed after I removed this element from the jnlp file:


The versioning approach you suggested is working as well.


Thanks for the advise.
Sunil Manheri
Ranch Hand

Joined: Jul 07, 2004
Posts: 32
Good to know your issue has been resolved. If you remove the update tag, Java WebStart will use the default value "timeout" for updates, means while starting your application WebStart will check for updates, if there are updates the latest files will be downloaded and launched. Value "background" will check for updates in the background, the program launch will not be interrupted. If there are updates, We Start will keep a note of this, the next time you start your application the latest files will be downloaded.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web start still loading old App