Java - Clear Java Cache

Tags java HowTo

Issue/Question

  • How do I clear Java cache?

Environment

  • Windows
  • Java 32-bit or 64-bit

Cause/Explanation

To resolve issues with cached content in Java. Old cached data may result in Java web pages not loading correctly. 

Clearing the Java Plug-in cache forces the browser to load the latest versions of web pages and programs. These steps will clear the Java cache for all installed browsers. 

Resolution

Method 1:  Clear the Java cache manually

  • Close out of any Java applications/browers currently running (Sunapsis, Spiral Knights, etc)
  • Go to the Java Control Panel 
  • In the General tab, under Temporary Internet Files section, Click on the box Settings... 
  • Click on the box Delete Files...
  • Check all three boxes and click OK & exit
  • Test the Java application

Method 2:  Turn off Java caching entirely

  • Close out of any Java applications/browsers which are currently running
  • Open Control Panel - click Java
  • In the General tab, under Temporary Internet Files section, Click on the box Settings... 
  • Uncheck the box Keep temporary files on my computer
  • Click OK to exit
  • Test the Java application

Turning off the Java cache entirely has the advantage of never needing to manually clear the cache or adjust the setting in the future (assuming a Java update doesn't disturb the setting), but does have a couple of important drawbacks:

  • Java applications may take longer to launch (because it always has to pull down the applet every time it launches)
  • Some security warnings will come up on every launch of the application (if they're going to come up at all), even if the user clicks the 'Do not show this again...' checkbox. This is because the applet is never cached, so the 'Do not show this again...' option is never really saved.

 

Assistance

For assistance, contact the Service Desk.

Details

Article ID: 98667
Created
Tue 2/18/20 10:26 AM
Modified
Tue 11/8/22 8:51 AM