3 Uninstalling the JRE

You can uninstall the JRE from the command line, by using uninstall tools provided with Windows Control Panel (Control Panel), or by running the Java Uninstall Tool.

This section includes the following topics:

Uninstalling the JRE with the Microsoft Windows Control Panel or the Java Uninstall Tool

You can uninstall the JRE by using either the Microsoft Windows Control Panel (Control Panel) utility or the Java Uninstall tool.

To uninstall the JRE, you can use one of the following:
  • The Add/Remove Programs utility in the Control Panel.
  • The Java Uninstall tool. To use the Java Uninstall tool, go to https://www.java.com/en/download/uninstalltool.jsp The Java Uninstall tool helps improve your computer security by finding and uninstalling older versions of Java. The tool shows you a list of the Java versions on your computer and then removes those that are out-of-date.

Note:

The Java Uninstall tool will not run if your system administrator specified a deployment rule set in your organization.

The deployment rule set enables enterprises to directly manage their Java desktop environment and continue using legacy business applications in an environment of ever-tightening Java applet and Java Web Start application security policies. The deployment rule set enables administrators to specify rules for applets and Java Web Start applications. These rules might specify that a specific JRE version must be used. Consequently, the Java Uninstaller tool will not run if it detects a deployment rule set that ensures required JREs are not uninstalled.

See Deployment Rule Set in Java Platform, Standard Edition Deployment Guide.

Uninstalling the JRE from the Command Line

You can uninstall the JRE from the command line.

Run the following command to uninstall the JRE:

msiexec /x {MSI product code of JRE} 

In the command, use the MSI product code of the JRE version that you want to uninstall. The product code code can be obtained by viewing the MSI log, or opening the MSI with an editor.