Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can we preload an application using Java Web Start in Java 1.6?

843802Aug 5 2008 — edited Mar 27 2009
Hi,

In Java 1.5 we were able to run a simple batch file to preload the Java cache with an application using the following:

javaws -wait -codebase file:preload\. -import test.jnlp

Where the jars required were contained in the folder preload.

After clearing the Java cache and disconnecting from the network; with 1.5 installed running the preload batch file offline indicates "Java downloading..." and the jars are loaded into the cache. I test this by subsequently reconnecting and running the jnlp file - the application runs as it should without any downloads. This does not work with 1.6 installed even though the command line options seem to be the same in 1.6. I.e. when offline and the cache cleared the batch file is run and the same "Java downloading..." appears but when the jnlp is run there is still a lengthy download required before the application runs.

Could someone offer advice regarding how this same thing might be accomplished with 1.6?

Thanks very much!


Sorry, lots of editing going on here...this is my first post to this forum! :-|

Edited by: DRoe on Aug 5, 2008 6:04 PM

Edited by: DRoe on Aug 5, 2008 6:10 PM

Edited by: DRoe on Aug 5, 2008 6:15 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2009
Added on Aug 5 2008
7 comments
222 views