Wednesday, 2 November 2022

How to Uninstall JDK 18 from the Windows 11 or Windows 10 Operating System? | Uninstall JDK

🌟 Want to Master Java? 🌟

Join our community for the best step-by-step tutorials!

SUBSCRIBE TO RAM N JAVA NOW!

How to Uninstall JDK from Windows 10/11

Sometimes you need to clean up your system by removing old versions of Java, or perhaps you need to perform a fresh installation of a newer JDK. While installing is easy, making sure every part of an old JDK is gone is crucial for avoiding environment conflicts. This guide walks you through the process clearly.

Step 1: Locate the Installed JDK

The first step is to identify where Java is currently living on your machine. Usually, it's found in your Program Files folder. Checking this first ensures you know exactly which version you are about to remove.

Step 2: Use the Windows Control Panel

To uninstall the software properly, follow these sub-steps:

  • Open the Control Panel on your Windows machine.
  • Navigate to Programs and Features (or "Uninstall a program").
  • Search for "Java" or "JDK" in the list.
  • Right-click the specific version (like JDK 18) and select Uninstall.

Step 3: Confirming Removal

Windows will ask if you are sure you want to remove the software. Click "Yes." The uninstaller will then remove the core files from your C:\Program Files\Java directory. You can go back to that folder to verify that the JDK folder has disappeared.

Step 4: Checking Environment Variables

This is a critical step many beginners forget! Even after uninstalling, your system might still be looking for Java in its old location.

  • Search for "Edit the system environment variables" in your start menu.
  • Check the JAVA_HOME variable and the Path variable.
  • Delete any entries that point to the JDK version you just uninstalled to keep your system clean.

Step 5: Final Verification

Open a new Command Prompt (CMD) and type java -version. If the uninstallation was successful and no other Java versions are installed, you should see an error message saying the command is not recognized. This is actually a good sign—it means your system is now a blank slate!

Explore More Java Tutorials:

If you're looking into Java Inheritance, these videos are perfect for you:

No comments:

Post a Comment

Tutorials