One of our clients had a Java uninstall go “badly” and now the install is broken. Java is a significant security risk so the client asked us to manually remove it.

We tried:

uninstall java
  • the uninstall process via APPS AND FEATURES
  • the Oracle Java Uninstall Tool
  • In-place upgrade (installing the same version of Java over top of the current version)

but all failed, so we had to go very manual.

How To Uninstall Java Manually

1 – Stop Any Java Services

Look at SERVICES.MSC for anything JAVA or ORACLE JAVA related, stop those services and set them to MANUAL start

2 – Delete These Folders

  • C:\Program Files\Java\jre*
  • C:\ProgramData\Oracle\Java
  • C:\Program Files (x86)\Common Files\Oracle\Java
  • C:\Users\<YourUsername>\AppData\LocalLow\Sun\Java

3 – Delete These Registry Entries

  • HKCU\Software\JavaSoft
  • HKLM\SOFTWARE\JavaSoft\Java Runtime Environment
  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Java-related key}
    and
    HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{Java-related key}
    • If you don’t know what the JAVA RELATED KEY is, look at THIS script.
  • HKLM\SYSTEM\CurrentControlSet\Services\ anything JAVA related
    • like JavaQuickStarterService

Then reboot and have a nice day.



0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *