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
How We Check Our Guides We use Apple’s support documents and current developer instructions to check the steps. Screenshots and menu names can differ between versions, so follow the branch for your Mac. Read our editorial 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. Review Java Components With Smart Uninstaller
MacKeeper’s Smart Uninstaller helps you inspect detected Java-related preference panes, plugins and app leftovers. Review the listed components and remove only those belonging to the Java installation you intend to retire. Check runtime or JDK installations separately before considering Java fully removed.
- Get MacKeeper 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, review Preference Panes, Plugins and Leftovers for components belonging to the Java installation you are removing.

- If the intended Java component appears, select it and click Remove Selected. Inspect its location before removal.

- Tap Remove on the pop-up window.

- Review the Removal Completed summary for the selected components. Check for remaining runtime or JDK installations separately before treating Java as fully removed.

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.prefPanesudo rm -fr ~/Library/Application\ Support/Oracle/JavaAvoid 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.
Frequently Asked Questions
What Is Java?
Is Java harmful to my Mac?
How often does Java get security updates?
Can I reinstall Java after uninstalling it?
What if an application stops working after I uninstall Java?
Affiliate disclosure: MacBook Journal may earn a commission when you buy through links on this page, at no extra cost to you.
How helpful was this article?
Your feedback helps us improve our guides.