Java

Uninstall Java on Windows 11

Uninstall Java on Windows 11

In this tutorial, we will learn how to uninstall Java on the Windows 11 operating system. The steps depend on the install method.

  • Installed through Java/JDK installer
  • Installed through JDK compressed archive Package

 

Side note: We can just change the JAVA_HOME to point to another Java install on the machine. There is no need to uninstall Java on the machine if your are switching JDKs.

Below are the steps to uninstall Java from the machine.

Uninstall Java

These steps are applicable for Java/JDK installed using installer.

Open Control Panel

Control Panel >> Programs >> Programs and Features screen

Check for Java JDK program entry in this screen.

Select the Java SE Development Kit <version> and click on the Uninstall link.

 

Uninstall Java Windows 11

This will launch the uninstaller. Click on Yes button to uninstall the JDK.

 

JDK Uninstall Wizard Windows 11

Remove environment variables set during Java install process. See below for the instructions to remove system variables.

That’ it. Java or JDK would be uninstalled from the Windows 11 machine.

Uninstall Package

The below steps are applicable if Java / JDK was installed using the compressed archive package on the machine.

Remove JDK directory

Locate the Java JDK home directory and right click on the folder. Delete the Java home directory.

Click on the delete Trash can icon in the context-sensitive menu.

 

Windows 11 Java Directory Remove

Remove System Variables

Remove the JAVA_HOME environment system variable

  • Click on the Search icon in the Taskbar.
  • Search for environment variables in the Search bar. Click the Edit the system environment variables  link.

 

Edit System Variables Windows 11

  • Open System properties. Click on the Environment Variables… button
  • In the system variables remove the JAVA_HOME variable. Select JAVA_HOME entry and click on the Delete button.

 

Delete JAVA_HOME variable Windows 11

Remove Java PATH entry

Remove the Java entry from the PATH environment system variable.

Choose the PATH system environment and click on the Edit… button.

 

Edit PATH system variable Uninstall Java

 

Choose the Java path entry can click on the Delete button.

 

Delete Java Entry Path

 

That’s it. Java uninstall is complete.