Uninstalling the JRE from the Command Line

You can uninstall both the 32-bit and the 64-bit 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.

For example

  • The following command uninstalls the 32-bit JRE, version 1.8.0_25:

    msiexec /x {26A24AE4-039D-4CA4-87B4-2F83218025F0} 
    
  • The following command uninstalls the 64-bit JRE, version 1.8.0_25:

    msiexec /x {26A24AE4-039D-4CA4-87B4-2F86418025F0} 
    

In the examples, the values that are in braces are the MSI product code of the JRE that you want to uninstall. The text in bold, 18025, represents JRE version 1.8.0_25 that you want to uninstall.