Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

960734Sep 7 2012 — edited Oct 23 2012
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2012
Added on Sep 7 2012
1 comment
8,537 views