Is there some way how to find the java cache directory programatically?
Normaly it is located in directory like this:
System.getProperty("user.home") + someMiddleDir + "/Sun/Java/Deployment/cache/" +
versionCode;
which resolves on Windows Vista into "c:/Users/userId/AppData/LocalLow/Sun/Java/Deployment/cache/6.0"
But I would need to find it in some more dynamic/precise way (minimum hardcoded code/path).
use this:
com.sun.deploy.config.Config.getCacheDirectory()
one good friend told me about this little nasty method :)