What is Java?

Read more
by Java

Overview

Java is published by Java. You can find out more about Java at its official website or at Java's website.


How do I clean Java?

Java may store excess, temporary data on your computer that can take up valuable space. It may also store private data such as passwords or browsing history in the registry or on the file system. The easiest way to erase this data is by downloading AppCleaner, it is 100% free and about 1MB in size. A portable version is also available.

Clean Java
with AppCleaner

If you want to clean Java manually, you can follow the steps outlined below. There are ten locations in the file system where Java stores data that can be cleaned.

Files

To clean your file system from files stored by Java and to gain free disk space, examine the following file system locations. First of all, open a command prompt window:

  • Hit the Windows key , usually located in the lower left of your keyboard between the Ctrl and Alt keys.
  • Windows XP/Vista/7: Click Run...
  • Type cmd
  • Hit Enter

Now list all the files stored by Java that can be cleaned:

  1. Type dir /s %APPDATA%\Sun\Java\Deployment\SystemCache\*
  2. Type dir /s %LOCALAPPDATA%\Sun\Java\Deployment\cache\*
    • Windows XP: Type dir /s %USERPROFILE%\Local Settings\Application Data\Sun\Java\Deployment\cache\*
  3. Type dir /s %LOCALAPPDATA%\Sun\Java\Deployment\SystemCache\*
    • Windows XP: Type dir /s %USERPROFILE%\Local Settings\Application Data\Sun\Java\Deployment\SystemCache\*
  4. Type dir /s %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\SystemCache\*
  5. Type dir /s %WinDir%\System32\config\systemprofile\AppData\LocalLow\Sun\Java\Deployment\Cache\*
  6. Type dir /s %WinDir%\SysWOW64\config\systemprofile\AppData\LocalLow\Sun\Java\Deployment\Cache\*
  7. Type dir %ProgramFiles%\Java\jre*
    • On 64-Bit also: Type dir %ProgramFiles(x86)%\Java\jre*
  8. For all the folders that were listed in the previous step:
    Type dir {folder}\*PATCH.ERR where {folder} is one of the folders listed in the previous step.
  9. Type dir %ProgramFiles%\Java\jre*
    • On 64-Bit also: Type dir %ProgramFiles(x86)%\Java\jre*
  10. For all the folders that were listed in the previous step:
    Type dir {folder}\lib\security\*.bak where {folder} is one of the folders listed in the previous step.
  11. Type dir %LOCALAPPDATA%\VirtualStore\Program Files*
    • Windows XP: Type dir %USERPROFILE%\Local Settings\Application Data\VirtualStore\Program Files*
  12. For all the folders that were listed in the previous step:
    Type dir {folder}\Java\jre* where {folder} is one of the folders listed in the previous step.
  13. For all the folders that were listed in the previous step:
    Type dir {folder}\*PATCH.ERR where {folder} is one of the folders listed in the previous step.
  14. Type dir %LOCALAPPDATA%\VirtualStore\Program Files*
    • Windows XP: Type dir %USERPROFILE%\Local Settings\Application Data\VirtualStore\Program Files*
  15. For all the folders that were listed in the previous step:
    Type dir {folder}\Java\jre* where {folder} is one of the folders listed in the previous step.
  16. For all the folders that were listed in the previous step:
    Type dir {folder}\lib\security\*.bak where {folder} is one of the folders listed in the previous step.

Once you have identified the files stored by Java that you want to clean, delete them using the del command or Windows Explorer.

0 Comments