To clear the Java cache, open the Java control panel, which you can find in the Windows Control Panel or in System Preferences on a Mac.
Click the Windows Button. Open the settings. Select System, click Storage. Scroll down the list and click "Cleanup recommendations." This will launch your temporary files from your Downloads folder ...