How to Uninstall Java From Mac featured image

How to Uninstall Java From Mac: 4 Best Methods

Java taking up space? Try these 4 ways to delete it

Written by

Reviewed by

Last updated: September 3, 2024

Expert verified

SVG Image

TL;DR

To uninstall Java from Mac:

  1. Locate the Java package file and double-click it to open.
  2. In the installer window, click the Remove button.
  3. 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 verify badge 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:

  1. If you have the Java installer on your Mac, double-click it. It is usually in the Downloads folder.
double click the java installer in downloads

If you don’t have it, you can download the installer from Java’s official website.

  1. Double-click the Java package file that appears in the new window.
double click the java update package
  1. 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.
click remove on java installer to uninstall java from mac

2. Through System Settings

Here’s how to uninstall Java from Mac via System Settings:

  1. Click the Apple icon in the top left corner of your screen and select System Settings.
click the apple icon and select system settings
  1. In System Settings, browse through the icons in the left sidebar and look for one labeled Java.
java tab in system settings
  1. Right-click Java to get an option labeled Remove “Java” Settings Pane. Click it.
click remove java settings pane
  1. Enter your username and password, and it will remove Java from your Mac.
  2. Next, open Finder and go to Applications.
click applications in the left sidebar of finder
  1. Type Java in the search bar at the top-right and press Enter.
  2. Find the JavaAppletPlugin.plugin file and drag it to the Bin.
delete the javaappletplugin plugin file

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:

  1. Download and install MacKeeper on your Mac.
  2. Open MacKeeper and click Smart Uninstaller in the left sidebar under Cleaning.
click smart uninstaller in the left sidebar
  1. Click Start Scan.
click start scan in smart uninstaller
  1. When the scan completes, click Preferences Panes in the left sidebar.
click preferences panes in the left sidebar
  1. Select Java in the right pane and click Remove Selected.
select java in the preference panes and click remove selected
  1. Tap Remove on the pop-up window.
click remove on the pop up window
  1. This will delete Java from your Mac, and you’ll get a Removal Completed notification. Click Rescan to start the scan again.
click continue after removal completed

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.

  1. Open the Terminal app by going to Finder > Applications > Utilities > Terminal.
launch terminal from utilities
  1. Type the following command and press Enter:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
type the sudo rm fr library internet plug ins javaappletplugin plugin command in terminal
  1. Enter your password.
type your password in terminal
  1. This will remove the Java plugin from your Mac.
  2. 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:

Frequently Asked Questions

What Is Java?

Java is a high-level, object-oriented programming language widely used for application, web, and mobile app development. It is known for its portability, ease of use, and robustness and runs on a virtual machine, making it compatible with different platforms without recompilation.

Is Java harmful to my Mac?

Java itself isn’t inherently harmful to your Mac. However, outdated Java versions can pose security risks due to vulnerabilities. Regular updates ensure Java remains secure. Always download from official sources and update your software to minimize potential threats.

How often does Java get security updates?

Java typically gets security updates four times a year. These updates are part of the Critical Patch Update (CPU) schedule and usually come in January, April, July, and October. However, monitoring Oracle’s official communications for any changes or unscheduled updates addressing emergent vulnerabilities is essential.

Can I reinstall Java after uninstalling it?

Yes, you can absolutely reinstall Java after uninstalling it from your Mac. Simply visit the official Java website, download the latest version appropriate for your Mac, and follow the installation prompts. It’s advisable to always download from official sources to ensure the software’s integrity and security.

What if an application stops working after I uninstall Java?

If an application stops working after you uninstall Java, it likely depends on Java. You can reinstall Java, check the app’s requirements, update the app, or explore Java-independent alternatives. Always ensure software changes are backed by recent data backups to mitigate potential data loss.

Ojash

Author

Hi there! I'm Ojash, a tech journalist with over a decade of experience in the industry. I've had the privilege of contributing to some of the world's largest tech publications, making my mark as a respected Mac expert. My passion lies in exploring, using, and writing about MacBooks, and I enjoy sharing my expertise to help others make informed decisions and get the most out of their MacBook experience. Join me as we delve into the fascinating world of MacBooks together!

Hashir Ibrahim

Reviewer

Hello! I'm Hashir, a seasoned tech journalist with a unique blend of academic expertise and hands-on experience. With a bachelor's in IT, a master's in cybersecurity, and over a decade in the industry, I've built a reputation for demystifying complex Apple hardware. My work has been featured in top tech outlets like MakeUseOf and MakeTechEasier. As the senior writer at MacBook Journal, I write guides that help you solve any issues you have with your mac.

Total
0
Shares
You May Also Like