This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Check for latest version check of JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Check for latest version check of JWS" Watch "Check for latest version check of JWS" New topic
Author

Check for latest version check of JWS

Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Hi All,
In my application everytime JWS is first check for the latest version present or not.
It is taking lot of time to verify the latest version.
Can we control the same either with jnlp or any other flag is there where we can put whether new version is there is or not.


Thanks
Kushagra
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

The update element is your friend in this case.
http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Hi Manish,

Thanks for the reply.

I have go throungh the link that you have provided to me. In that I have found few things that fulfill my problem. I applied them but still not get any result that my users want.
It still asking every time" checking for latest version....".. And many time system hang out and nothing happen then.

Can there is any solution for the problem.
Means to check for the updates in the jar files if having then download them in background. And don't prompt user everytime to chek for the version on the screen.

Thanks
Kushagra
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

1) Clear your application cache. On windows settings->control panel->java->Temporary Internet Files->Settings->Delete Files
2) Clear your browser cache.
3) Try launching the application.

You can use the Java console to see if you got any exceptions.
Post the stack trace here so we can try and help you.
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Hi,

Actually I have clear all the cache anf\d temp file. But still I takes lot of time.

Also I have checked for the exception too.
But there is no such type of exception there.

Also on the same time I ma moving in the following direction

I have two way out.

1. While launching the JWS from the javascript it will set a variable which will tell the JWS not to check for the updates in front of the users and check it in background.


2. Set a variable in jnlp file which will chek for the update in the background and download automatically if present and not pompt user for the same.


Please suggest me if there is any other way and also if there is any solution regarding the above two way.

Thanks
Kushagra
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18152
    
    8

What's your goal here? Do you want the background check to come back after 2 minutes, when the user has already started using the old version, and tell them to get off so the new version can be started? Seems to me you have identified a problem (it takes a long time to find whether there's a new version) and instead of finding out why the problem exists or trying to solve it directly, you're trying to implement a workaround without considering its implications.
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Yes you are right.

I have to find out the solution of the problem.
But still of the same stop and not finding how to make it faster or can we check the version. Means is it possible to handle a flag which contains the version of the updated jar files which JWS download if it finds. And then firstly we will check the version of the flag and find if there is any change in the version of the files then download them from the server.

If is there a way to do this. Then please let me know the way.

Thanks
Kushagra
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Is there a solution regarding the same. As I am really stuck with the same problem.
Also one more thing some time what happen my JWS will show "Java Loading..." and after some time it become disappear and then nothing happen with the JWS and then I have to reopen the same by click on the same button again and this is also happening to me for a lot of time.

Thanks
Kushagra
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Is there no way to handle out these two problem.

Please help me out if anybody have any solution for the same.

Thanks
Kushagra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check for latest version check of JWS
 
Similar Threads
Java Swing App - How to code - Help - Check for Updates
How to make Swing App Web Enabled
How do I create patch?
setAttribute method not found
Deploying custom tags in JWS