Is it safe to delete Java folders from C:\Users\(Username)\AppData\LocalLow\Sun\Java

15

2

I am using a Windows 7 64-bit PC. I have many folders in C:\Users\(Username)\AppData\LocalLow\Sun\Java with names of older Java versions like:

  • jdk1.7.0_21_x64
  • jre1.7.0_45
  • jre1.7.0_25

These folders contain .msi and .cab files. I have uninstalled all older versions of Java but these folders are still in that location.

Do I need those? Or is it safe to delete?

Octocat

Posted 2014-08-20T16:59:25.757

Reputation: 460

Rename them, if nothing complains after a week, delete them. – Ƭᴇcʜιᴇ007 – 2014-08-20T17:04:04.583

Answers

6

Yes, if you've already uninstalled them, this is safe to do.

Also, you may find Oracle's Java Uninstall Tool helpful.

Jason

Posted 2014-08-20T16:59:25.757

Reputation: 5 925

7

Based on the this bug report, I removed the files in C:\Users\(Username)\AppData\LocalLow\Sun\Java after installation. Java continued to work as it should. It became impossible to remove, using Add/Remove Programs, any version whose files I had deleted.

It seems that these files are only kept around for uninstallation. Java Uninstall Tool mentioned in Jason's answer probably alleviates the need to keep those files around.

Codebling

Posted 2014-08-20T16:59:25.757

Reputation: 631