Silently Uninstall Java

** See a newer, up-to-date version of this blog post **

“How do I uninstall old versions of Java across my network?”

This is a very common question that we hear from Sys Admins.

In this article we will walk through a few options to removing the Java Runtime Environment (JRE) from a single computer as well as from all of your computers. 

We’ll post a video at the end of the article.

Uninstall Java from a single computer

uninstall java from a single computer

If you only have one or two computers that you need to uninstall Java on, you may want to just use PDQ Inventory (pro mode) which allows you to do uninstalls to single computers. 

In PDQ Inventory, locate the computer to uninstall and double-click on the computer name. Select the Applications panel. 

Locate the Java update that you wish to remove, right-click and select “Uninstall” from the pop-up menu.

A new window will appear where you can verify credentials, change timeout settings, etc.

Click the “Run” button at the right of the Command field. The uninstall will automatically begin. 

Uninstall Java from multiple computers

There are two ways to do this:

  1. Download our pre-made uninstall Packages from the Package Library. (Advanced subscription required)
  2. Create your own PDQ Package and manually enter the steps to uninstall each Java update

 

Uninstall Java

 

The screenshot below shows shows 3 versions of Java installed on the computer named Grant. (This data came from PDQ Inventory).  

Concurrent Java

In this example we are going to uninstall Java 6. We are going to download our pre-made Java uninstall package from the Package Library. 

NOTE: Because this is a multi-step process the Package will require the pro mode version of PDQ Deploy. 

After downloading the uninstall Package into PDQ Deploy, simply select it and click the “Deploy…” button. This will allow you to select your target computers for the Java install.

A Note About Java Uninstalls

The uninstall command varies for each Java update. For example, to uninstall Java 6 Update 31 we used this command:

MsiExec.exe /qn /X{26A24AE4-039D-4CA4-87B4-2F83216031FF} /norestart

However the command to uninstall Java 6 Update 37 is:

MsiExec.exe /qn /X{26A24AE4-039D-4CA4-87B4-2F83216037FF} /norestart

If you are building the package manually you will need to add the uninstall string for each update that you have on your network.

By the way, that’s the beauty of using the Package Library. You don’t have to do the research on which strings will uninstall which Java update. We do that for you. With dozens of steps to run the package looks pretty daunting. Worry not, it runs quickly.

Video of Uninstalling Java from both single and multiple computers

We recommend viewing this video is High Definition (720p).

 

Try PDQ Deploy

NOTE: The pro mode trial does not include a trial of the package library. We do provide access to some packages in the library during your trial, but to access all the packages, including the Uninstall Java package, will a pro mode license with an advanced subscription