How can we preload an application using Java Web Start in Java 1.6?
843802Aug 5 2008 — edited Mar 27 2009Hi,
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