You should know how to clear java cache because temporary java files can impact the browser’s performance as well as show outdated content. By clearing the cache, we can force browsers to update webpages and get fresh content like applets.
To clear java cache we need to open Java Control Panel. In this short article, we will quickly see the process of cache cleaning.
Open Java control panel
For Windows Operating System
Open javacpl.exe
from either of these locations –
Windows 32-bit OS: c:\Program Files\Java\jre7\bin\javacpl.exe
Windows 64-bit OS: c:\Program Files (x86)\Java\jre7\bin\javacpl.exe
For Mac OS
Click Apple icon () > System Preferences > Java icon( )
The Java control panel will look like this –

Clear Java Cache
Now, open Temporary Files Settings window by clicking on Settings.. button.

Temporary files settings window will open. Now click on Delete Files.. button to clear the cache.

Select only Trace and Log Files, Cached Applications and Applets. Don’t select Installed Applications and Applets.

That’s it. Your Java cache will be cleared by following these steps.