Tuesday, 20 September 2022

How Uninstall JDK Windows 11 or Windows 10 Operating system? | Uninstall JDK

🚀 MASTER JAVA & AWS TODAY!

Don't miss out on easy-to-follow tech tutorials!

SUBSCRIBE TO RAM N JAVA

How to Completely Uninstall JDK from Windows

Whether you're troubleshooting an installation or upgrading to a newer version, knowing how to properly remove the Java Development Kit (JDK) is essential. A clean uninstallation prevents "version mismatch" errors that often frustrate developers. Follow this beginner-friendly guide to clean your Windows 10 or 11 system.

1. Use the Windows Control Panel

The standard way to remove software on Windows is through the Control Panel. This method removes the application files and the registry entries created during installation.

  • Open the Control Panel and go to Programs and Features.
  • Scroll through the list to find your Java SE Development Kit.
  • Right-click the version you want to remove and select Uninstall.
  • Follow the prompts until the process is complete.

2. Manually Delete Remaining Folders

Sometimes, the uninstaller leaves behind empty folders or configuration files. To be safe, check your installation directory.

Navigate to C:\Program Files\Java. If you still see the folder for the version you just uninstalled, right-click and delete it manually. This ensures a truly "clean" slate.

3. Clean Up Environment Variables

This is where most beginners run into trouble! Even after uninstalling, your system might still be pointing to a path that no longer exists.

  • Search for "Environment Variables" in the Start Menu.
  • Check for the JAVA_HOME variable under "System Variables" and delete it.
  • Edit the Path variable and remove any lines referencing the old JDK bin folder.

4. Verify the Removal

The best way to confirm is by using the Command Prompt. Open a new CMD window and type:

java -version

If you see a message saying 'java' is not recognized, you have successfully and completely removed the JDK! You are now ready for a fresh installation.

Learn More About AWS SNS:

Now that your environment is ready, dive into AWS Simple Notification Service (SNS) with these top picks from our channel:

No comments:

Post a Comment

Tutorials