TL;DR
To uninstall Java from Mac:
- Locate the Java package file and double-click it to open.
- In the installer window, click the Remove button.
- You’ll receive a notification confirming the successful uninstallation.
Tried and Tested ✅: The methods and steps mentioned in this article have been tried and tested firsthand by Ojash Yadav on his MacBook Pro M3 and rechecked for errors on Hashir’s MacBook Air M2.
Java might have been useful for you at some point, but now it’s just taking up space on your Mac. If you’re ready to remove it and free up some resources, I’ll show you exactly how to uninstall Java from your Mac quickly and easily.
How to Uninstall Java From Mac
Why You Can Trust MacBook Journal We always conduct first-hand research and verify every method or solution we present, ensuring you receive reliable and effective advice. Learn more about our process.
I’ve outlined four ways to uninstall Java, just pick the one that suits you best, and get started:
1. Using the Java Installer
Using the Java Installer on your Mac provides a straightforward and official way to uninstall Java, ensuring a clean removal guided by the software’s own tools. Follow these steps to use the Java Installer for a clean and thorough uninstallation process:
- If you have the Java installer on your Mac, double-click it. It is usually in the Downloads folder.
If you don’t have it, you can download the installer from Java’s official website.
- Double-click the Java package file that appears in the new window.
- Next, click the Remove button on the installer window. This will uninstall Java from your Mac, and you’ll get a notification about the successful uninstallation.
2. Through System Settings
Here’s how to uninstall Java from Mac via System Settings:
- Click the Apple icon in the top left corner of your screen and select System Settings.
- In System Settings, browse through the icons in the left sidebar and look for one labeled Java.
- Right-click Java to get an option labeled Remove “Java” Settings Pane. Click it.
- Enter your username and password, and it will remove Java from your Mac.
- Next, open Finder and go to Applications.
- Type Java in the search bar at the top-right and press Enter.
- Find the JavaAppletPlugin.plugin file and drag it to the Bin.
Don’t forget to empty the Trash on Mac to remove Java completely from the system.
3. Using a Third Party App
Third-party apps like MacKeeper can streamline the uninstallation process, providing a user-friendly and automated way to remove Java from your system. Here is how to do it:
- Download and install MacKeeper on your Mac.
- Open MacKeeper and click Smart Uninstaller in the left sidebar under Cleaning.
- Click Start Scan.
- When the scan completes, click Preferences Panes in the left sidebar.
- Select Java in the right pane and click Remove Selected.
- Tap Remove on the pop-up window.
- This will delete Java from your Mac, and you’ll get a Removal Completed notification. Click Rescan to start the scan again.
4. Using the Terminal
Here’s how to use Terminal to uninstall Java from Mac:
Always proceed with caution when using Terminal commands, and only use this method if you haven’t had success with others and feel confident in using command line tools.
- Open the Terminal app by going to Finder > Applications > Utilities > Terminal.
- Type the following command and press Enter:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
- Enter your password.
- This will remove the Java plugin from your Mac.
- Also, use the following commands to completely remove Java from your Mac:
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java
Avoid trying to uninstall Java by deleting the Java tools in the /usr/bin directory
. This directory is integral to the system software, and Apple will undo any modifications during the next OS update.
Remove Java From Your Mac
While robust and multifunctional, Java isn’t always necessary for the modern Mac user. Assess your needs, weigh the pros and cons, and make an informed decision. And always remember: a well-maintained Mac is a happy Mac.
Here are a few more tips to optimize your Mac:
- Regularly clear your Mac’s cache to keep it running smoothly.
- Uninstall unused apps to free up storage space on your Mac.
- Addressing performance issues to speed your Mac and prevent crashes or lag.