The Source for Java Technology Collaboration

Home » java.net Forums » JDK » 6uN Early Access

Thread: Web Start applications cannot be launched offline

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 6 - Last Post: Sep 18, 2008 5:41 PM by: andre_lesnik Threads: [ Previous | Next ]
pauldb

Posts: 100
Web Start applications cannot be launched offline
Posted: Sep 18, 2008 2:21 AM
  Click to reply to this thread Reply

In an earlier post I reported that web start applications could not be launched offline from the command line. I reported this bug here:

http://bugs.sun.com/view_bug.do?bug_id=6744967

However, the situation is even worse than that. Without a network connection, in my experience at least, they cannot be launched offline from the Java Cache Viewer either. (I hadn't realised this earlier because I still had the network connection).

If you are developing web start applications, please vote for this bug. For me, this is a showstopper. I have customers who need to be able to launch the application offline.

Thanks for your time,
-Paul

denka

Posts: 19
Re: Web Start applications cannot be launched offline
Posted: Sep 18, 2008 8:57 AM   in response to: pauldb
  Click to reply to this thread Reply

Does your JNLP specify that your app can be offline? Elements "offline-allowed" and "update" are responsible for, respectively, allowing the app to run offline, and specify update policy. Your update policy could be (explicit or by default) set to "always".

http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html

I don't know for sure, if you use other JNLPs as dependencies (do you?), would update policy and offline status on them affect your app or not. maybe worth checking if you still have problems after fixing your JNLP according to suggestion above.

pauldb

Posts: 100
Re: Web Start applications cannot be launched offline
Posted: Sep 18, 2008 10:05 AM   in response to: denka
  Click to reply to this thread Reply

Hi denka,
thanks for your suggestion.

I do indeed include:

<offline-allowed/>

and I have tried it with both:

<update check="timeout" policy="prompt-update"/>

and

<update check="timeout" policy="always"/>

and I get the same error in all cases. I believe it's the check attribute, not the policy, that's important in this regard.

The JNLP file does not reference any other JNLP files.

Moreover, it's the same application and JNLP file that works with Java 6 u7 and earlier.

Thanks again,
-Paul

pauldb

Posts: 100
Re: Web Start applications cannot be launched offline
Posted: Sep 18, 2008 10:08 AM   in response to: pauldb
  Click to reply to this thread Reply

..

ghaneman

Posts: 23
Re: Web Start applications cannot be launched offline
Posted: Sep 18, 2008 3:05 PM   in response to: pauldb
  Click to reply to this thread Reply

Yep, you're right. I've confirmed the problem and this is another showstopper. Sun, I have clients that run webstart apps on their laptops while not connected to the net. You cannot assume all users will always be online. Do you guys actually test anymore?

I think it's time for me to look at some other way of installing Java applications that support auto update. Denova have JExpress so I might try that. (Anyone have experience with this product?)

rogyeu

Posts: 184
Re: Web Start applications cannot be launched offline
Posted: Sep 18, 2008 5:14 PM   in response to: pauldb
  Click to reply to this thread Reply

Thank you for reporting the issue. I have confirmed the issue and created a CR for it with Bug ID: 6750208.

Thanks,
Roger Y.

andre_lesnik

Posts: 1
Re: Web Start applications cannot be launched offline
Posted: Sep 18, 2008 5:41 PM   in response to: pauldb
  Click to reply to this thread Reply

Have you tried netx - an open source implementation of webstart. Redhat has resurrected the project and is using it for the 64bit openjdk. Check the following. You can get the source and modify it yourself if need be.

http://langel.wordpress.com/2008/01/11/icedtea-and-netx/
http://jnlp.sourceforge.net/netx/index.html




 XML java.net RSS