Want to learn various ways you can uninstall Java on Windows 11?
One of the most popular programming languages and computing platforms, Java, can take up quite some space on your computer, has slow performance, and is susceptible to many viruses. Thus it wouldn’t be a surprise if you too, like many other users, want to Uninstall Java on Mac or Windows 11 PC.
Though Java is not installed on your computer by default, the websites and programs developed by Java might automatically download it as Java is necessary for them to work.
As it’s not an essential part of Windows, there’s no harm in getting rid of Java, unless of course, you need to run programs based on Java. This guide is all you need if you’ve decided to get rid of it or move towards better alternatives. Below, we’ve discussed different ways you can uninstall Java on Windows 11 and clean your system from its traces.
So what’s the wait for? Let’s get started right away!
1. Uninstall Java From Windows Settings.
One of the easiest and most straightforward ways to remove Java from your computer is through the Windows Settings app. This is how you would remove most of your installed applications.
Let’s take a quick look at the steps for this method:
- Press Win + i keys to open Settings. Alternatively, click on the Start menu and choose Settings.
- From the left pane, click on Apps.
- Then, choose Apps & features from your screen’s right side.
- Look for the Java app from the list and click on the three horizontal dots next to it.
- Now, select Uninstall from the pop-up options.
- Lastly, reboot your computer and check whether the Java app is uninstalled successfully or not.
2. Use the Control Panel to Uninstall Java.
Another way to uninstall Java on Windows 11 is from the Control Panel. It has a dedicated tool for uninstalling any third-party program in your computer. Before Windows 10, this is how users would remove programs from their system since the Settings app offered no such feature.
Use the steps below to do it:
- Head over to the Start menu and click on the search bar.
- Type in ‘control’ in the search bar and select Control Panel from the search results.
- The Control Panel window will appear. Now, choose Uninstall a program under Programs.
- Now, find the Java app from the list of installed apps and right-click on it.
- Click on Uninstall.
- From the User Account Control prompt that appears, click Yes to continue uninstalling Java from your PC.
3. Uninstall Outdated Java Versions With Uninstaller Tool.
Java also offers a dedicated tool to uninstall the outdated versions and provides links to get the latest version available. The tool will automatically scan for the outdated version and remove the program completely with no traces left behind.
Here’s how you can utilize it:
- Start by going to the Java official website and select the I Agree to the Terms and Want to Continue button to install the tool on your PC.
- Next, click on the JavaUninstallTool.exe file to launch it.
- From the new window that opens, click on Agree to continue.
- The next screen will show you the available Java versions on your PC. Check the box next to the one you wish to uninstall and choose Next.
- Wait for the uninstalling process to complete and click on Close once the Java is successfully uninstalled on your PC.
4. Uninstall Java Development Kit.
If you have a Java Development Kit like OpenJDK or Oracle JDK installed, you can use any of the above-explained methods to remove it from your computer. But if you remember downloading OpenJDK from an archive file, you can simply delete the extracted folder, which will automatically remove OpenJDK from your system.
5. Clear Java Path From Environmental Variables.
Like any other program, Java also leaves behind its traces if not properly uninstalled. This is because when you install Java, your computer creates a new path and stores it in the environmental variables.
So, when you wish to uninstall Java on Windows 11 for whatever reason, be sure to remove these paths as well so that there are no leftovers of the program to cause installation conflict in the future.
Here’s how to do it:
- Go to Settings from your PC by pressing Win + i keys.
- From the System tab, choose About.
- Next, click on Advanced system settings.
- The System Properties window will open. From there, choose the Environmental Variables button.
- From the System Variables section, click on the Path variable, and choose the Edit button.
- Click on the paths you want to delete and choose Delete.
- Lastly, select OK to confirm.
6. Delete Java Directories.
If you’ve been unable to uninstall Java yet because it does not appear in the Settings or you don’t have the uninstaller program, you can manually delete the Java directories to resolve the issue.
Navigate to these directories and delete them to remove Java from your system:
- JDK installation folder:
- Java cache folder:
C:\Program Files\Common Files\Oracle\Java\
- Java path:
C:\Program Files (x86)\Common Files\Oracle\Java
- Java update:
C:\Program Files (x86)\Common Files\Java
- Java install cache:
7. Delete Java Leftover Registry Entries.
Uninstalling Java is not always a clean process, as it may leave its traces behind on your computer. Although harmful, they might interfere with the future installation if you ever decide to bring Java back into use. These leftovers include path variables, installation directories, cache data, registry entries, etc.
As we’ve already discussed the steps to delete path variables and directories, let’s now look at how you can take care of the leftover registry entries. Use the instructions below to do so:
- Launch the Run dialog box by pressing Win + R keys from your keyboard.
- Type in ‘regedit’ in the field box and click on OK.
- Now, head to the following path:
- The Registry Editor window will appear. Click on Edit from the top bar and choose Find.
- Then, type in the Java version number you wish to delete and choose the Find Next button.
- The registry key will be highlighted. Now, right-click on it and choose Delete.
- Finally, click on Yes to confirm it.
8. Use Third-Party Uninstaller Software.
If you prefer a third-party uninstaller app, just ensure it is reliable before going ahead with this method. Some programs include CCleaner, Revo Uninstaller, IObit Uninstaller, and Wise Program Uninstaller. These programs will automatically uninstall Java on Windows 11 along with the program leftovers.
Below, we’ve used Revo Uninstaller to show you the steps:
- Start by downloading and installing the uninstaller on your computer.
- After that, open the app and click on the Java app that you want to uninstall.
- Then, click on Uninstall from the top bar.
- Click on Continue to proceed.
- Then, select Yes.
- Once Java is uninstalled, click on Scan to look for any remaining files.
- Click on all the residual files and choose the Delete button from the bottom.
- At last, click on Finish.
This brings us to the end of our guide on how to uninstall Java on Windows 11. We’ve discussed several different ways you can do so and hope you find them useful. Let us know your feedback in the comment section below. We’ll be happy to hear back from you.
If this guide helped you, please share it. 😊