The need to have Java installed on your Mac is needless, to say the least.
Why may you ask? Because it’s not required for most of the applications on the machine. Besides, if any applications do need it, we can install it then whenever we’re asked.
However, the issue with Java is that it comes preinstalled (without permission), and it is no straightforward task where you can hit an “Uninstall” button just like every other application to remove it.
Now bear in mind that some applications, specifically applications that are Java-dependent like IDEs, office suite applications like OpenOffice or LibreOffice, torrent clients, and more, will rely on Java to work.
Once you’ve removed Java on your Mac, these applications won’t work anymore.
In this guide, we will show you how to uninstall Java entirely from your Mac.
How to Unistall Java on Mac
- First, make sure that there are no apps running in the background. Specifically, ensure that applications which uses Java are closed.
- After that, access the Finder on your Mac. You can press Command + Space on your keyboard and look for “Finder” on Spotlight Search.
- Now, click on Go and select the Go to Folder option. Copy the path below:
- Inside the folder, locate JavaAppletPlugin.plugin and delete it.
- Once done, go back to the Go to Folder option and copy the path below:
- Find the JavaControlPanel.prefPane file and delete it.
- Lastly, go to the path below and delete the Java folder.
Once done, restart your Mac, and Java should be completely removed from your system.
Use Your Mac’s Command-Line
Take note that you must be careful when entering the code below into your Command-Line as mistyping a syntax such as ‘rm’ with superuser privileges can cause a whole lot of unwanted trouble.
Here are the steps:
- First, open your Finder and go to Utilities > Terminal.
- Now one by one carefully enter the following lines individually in the Terminal:
sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"
sudo rm -rf "/Library/PreferencePanes/JavaControlPanel.prefPane"
sudo rm -rf "~/Library/Application Support/Java"
- Lastly, wait for the process to finish.
After running the command, Java should be completely uninstalled from your Mac. As we have mentioned in the beginning, if you were ever to encounter problems with your applications that use Java, you have no other choice but to reinstall Java.
Fortunately, most applications on macOS don’t require Java, and hence the methods above will help you remove it from your Mac.
We hope that this guide has helped uninstall Java on your Mac. If you have questions, feel free to leave a comment below, and we will love to help you out.
If this guide helped you, please share it. 🙂