views:

215

answers:

3

Where is the jar files cached for Java Web Start/JNLP applications?

+1  A: 

In Windows Vista/7 it's in %AppData%\LocalLow\Sun\Java\Deployment\cache

JRL
+2  A: 

It depends... on your OS and virtual machine, e.g.:

  • with a Sun JDK 1.5 and Windows XP: C:\Documents and Settings\userid\Application Data\Sun\Java\Deployment\cache\javaws\
  • with a Sun JDK 1.6 and Vista: C:\Users\userid\AppData\LocalLow\Sun\Java\Deployment\cache\6.0
  • with a Sun JDK 1.6 and GNU/Linux: /home/userid/.java/deployment/cache/6.0

With a Sun JDK 6, this can be configured through the Java Control Panel (Temporary Internet Files Settings in the General tab).

Pascal Thivent
+1  A: 

There is more to JNLP than just Sun's implementation.

The OpenJDK packages shipped by Debain, for instance, bundle netx, which stores its files in ~/.netx/cache/. The Wikipedia entry has a list of known implementations other than Sun's.

You really shouldn't rely on this path being well-known in your application's code.

IgKh