How To Guides Org

Secure Windows 7: Delete Java Cache Files & “Disable” Java Cache

Unfortunately, Java is very insecure and can be easily exploited. If you want to secure Windows 7, I suggest that you regularly delete your java cache and/or disable the java cache completely. (Well, you can’t disable it but you can prevent that it keeps temp files.)


Delete Temporary Files Regularly!

The biggest weakness of probably most operating systems are that temporary folders are always required. Cache folders and temporary internet folders often contain malicious files. If you never delete your temporary files, I will guarantee you that you have at least one virus on your computer right now without you even knowing.

Java System Tray Icon – Be Cautious!

Without Java we wouldn’t have nice games like Minecraft, but it’s also a big security risk. Whenever you visit an unknown website and you see this little icon pop up in your system tray be VERY suspicious and expect the worst. Often, it is already too late because you might already have the virus in your cache.

How To Delete Java Cache Files

1. StepOpen the Control Panel
2. Step From the dropdown View by, select Large Icons:

3. Step Next, you will find a couple more items in your Control Panel. Click on Java (32-bit) or Java (64-bit), depending on which Java is currently installed on your system:

4. Step At the bottom (fieldset Temporary Internet Files) click on Settings…

5. Step To delete your java cache files, click on Delete Files…

6. StepCheck both Applications and Applets, as well as Trace and Log Files (if you don’t need them) and confirm with OK.

7. Step If you want to prevent that Java keeps any temporary files on your computer uncheck Keep temporary files on my computer. Java will still write files into the directory C:\Users\sOliver\AppData\LocalLow\Sun\Java\Deployment\cache\6.0

8. Step Next, click on Ok again, then on Apply (important!)

Delete Java Cache Files Manually (Precaution)

Well, deleting the cache files might help to get rid of a lot of viruses. However, I noticed that it will NOT delete all temporary files. Here’s how you delete Java cache files manually.

1. Step Open Windows Explorer (Windows key + E)
2. Step Go to C:\Users\[username]\AppData\LocalLow\Sun\Java\Deployment\cache\
3. Step Hold Shift and delete the folder 6.0

It is safe to delete this folder, it will be recreated as soon as you access any Java applet again.

Keep Your PC Secure!

This was another security tip and I hope it will help you to make your PC more secure. As a reminder, always make sure to get rid of all temporary internet files. We have several tutorials on our site how to delete temporary internet files:

How to delete temporary internet files in Windows 7 & get rid of index.dat
How to delete cookies in Windows 7
Tool to quickly delete temp files