• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding the java web start cache location

 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to pre-install some jar files in the java web start cache, but have come to notice that the web start cache location is different based
on the jre version/ windows os version running. This makes it impossible
to write a install script that can work anywhere.

Is there a definitive way to
find where the java web start cache is on particular machine.
 
dennis zined
Ranch Hand
Posts: 330
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not make it part of the webstart download?
 
leo mari
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only to solve your path curiosity:
On windows you can try this:

1) Get HKEY_CURRENT_USER\Volatile Environment\APPDATA Value
2) Append to this value "\Sun\Java\Deployment\javaws\cache"

(you 'll have a String like this one: "C:\Documents and Settings\Administrator\Dati applicazioni\Sun\Java\Deployment\javaws\cache")
It works on xp,w2k..?

But the cleanest solution (and standard) is the one in the dennis zined's answer, ... use a lazy download if could be useful for you.
Bye
Leo
[ October 24, 2004: Message edited by: leo mari ]
 
Ian Darwin
author
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to pre-install the Jar files, why use JWS at all? Just make a client installer. Then you can write different versions for different JDK locations on MS-Windows, Linux, MacOSX and others. Or, just use Web Start and let it handle the grunt work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic