This discussion is archived
1 Reply Latest reply: Oct 22, 2012 10:23 PM by 969860 RSS

Way to programmatically clear the all of the user's Java cache on Install?

960734 Newbie
Currently Being Moderated
We deploy the JRE via SCCM. I create an mst for use with the msi and cab file. I also modify and apply a system-level deployment.properties file. This install is a silent, unattended install with updates disabled.

We want to migrate from JRE 6 to JRE 7 but are running into an issue with the Java cache. We figured out that clearing the Java Cache (Temporary Internet Files via the Java Control Panel) solved the problem. We had to select all three boxes: 1) Trace and Log Files, 2) Cached Applications and Applets and 3) Installed Applications and Applets. These files are stored per user (on Windows 7): C:\Users\<userid>\AppData\LocalLow\Sun\Java\Deployment\cache

I found the instructions for using command line options with javaws (-Xclearcache -Xnosplash or -uninstall) but wouldn't that only clear the cache for the currently logged on user?

Is there a way to programmatically clear the all of the user's Java cache on install? Maybe with something in the deployment.properties file?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points