Home > How to Tips

Java macOS Uninstall with Top 4 Ways [Complete Removal]

Updated on Tuesday, August 27, 2024

Written by

Sherry Song

Approved by

Jessica Shee

English Français Deutsch やまと Español Português

Summary: No need for Java but can't remove it completely on Mac? This post from iBoysoft will guide you to master five useful complete removal tools of Java macOS uninstall and you are suggested to utilize iBoysoft MagicMenu, which is the most convenient and cost-effective one.

You once might use some applications built with Java that need a Java running environment on your Mac and now Apple's Swift programming language and XCode on Mac, the majority of Mac apps are developed without depending on Java.

If Java remains installed on your Mac, there is little use to use it, which also takes up much space on your Mac. So how to uninstall Java on Mac? This guide will walk you through various methods to completely remove Java from Mac, ensuring a clean uninstallation process.

An Overview of Methods to Delete Java on Mac

Here are the ways we will talk about in detail later.

Uninstalling ApproachesClean Java and leftovers togetherDifficult levelOverall score
Use iBoysoft MagicMenu Low     
Apply Java installer file Moderate   
Utilize Finder Low   
Opt for Terminal High    

If you no longer use Java, uninstalling it will free up a lot of space and achieve a smooth digital space. Learn the complete deletion of Mac Java in the step-by-step guide and share this table to help more ones~

 

The prior cleanest way to uninstall Java on macOS

Before we delve into specific methods, it's essential to know the cleanest to uninstall Java on macOS is by applying a dedicated comprehensive tool iBoysoft MagicMenu, which allows you to delete the app and the leftovers together with a few easy clicks.

Uninstalling Java on Mac usually requires you to find and delete the associated files with Java and empty the app and leftovers in the Trash. It is so troublesome that you'd better use iBoysoft MagicMenu, getting you rid of the boring and repeated finding and deleting.

To uninstall Java on Mac completely with iBoysoft, follow:

  1. Download, install, and launch iBoysoft MagicMenu.
  2. In the left menu, click Extension then scroll down to find Utility and click the download icon of Uninstall App.
  3. Finder > Applications > Right-click Java > Uninstall.
  4. In the scanning results, click Uninstall > Yes.

If you compare the other steps we will talk about later, you will find iBoysoft MagicMenu is worth trying, for its convenience and saving the deletion in the Finder and Trash. Moreover, iBoysoft MagicMenu can create new various files, clean duplicate files or photos, convert images, and so on...

Java macOS uninstall with its installation file #(Leave installation file)

If you have installed Java using an installation file, you can utilize the uninstaller included with the package. Simply locate the installer file and run the uninstaller tool, you can follow the steps to delete Java on Mac:

  1. Find and open the Java installer in the Downloads folder. 
  2. Click Open when macOS warns you about opening it. 
  3. Click Remove and enter your admin password. 
  4. Finder > Go > Go to Folder. 
  5. Enter the paths below and press the Enter key, look for the Java-associated files/folders. 
    /Library/Application Support/Oracle
    /Library/Java/
    /Library/Internet Plug-ins/
    /Library/PreferencesPanes 
  6. Right-click them and choose Move to Trash. (You can also drag them to Trash.) 
  7. Dock > Right-click Trash > Empty Trash.

Then you have to check the Java installer and move it to the Trash.

Java macOS uninstall with Finder #(Leave leftovers)

You can choose to uninstall Java on Mac with Finder, a useful tool on Mac like Windows File Explorer. And you also have to find and delete the related files with Java in Finder and Trash.

  1. Finder > Applications > Right-click Java. 
  2. Choose Move to Trash. 
  3. Finder > Go > Go to Folder.
  4. Type ~/Library then press Enter. 
  5. Find the associated files/folders of Java(listed below) > Right-click them > Move to Trash.
    /Library/Application Support/Oracle
    /Library/Java/
    /Library/Internet Plug-ins/
    /Library/PreferencesPanes
    (Or type Java in the Search box and delete all related folders, documents, plain texts, and .plist
  6. Dock > Trash > Right-click Java's various folders you remove here > Delete Immediately.

Java macOS uninstall with Terminal #(A little complicated tool)

Advanced users may prefer using Terminal for uninstallation. But you should know that small mistakes in Terminal command lines may lead to irreparable results, so be very careful and take caution with this method, as it requires precise commands to avoid unintended deletions.

  1. Finder > Applications > Utilities > Terminal. 
  2. Type the commands below then press the Enter key:
    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
    sudo rm -fr ~/Library/Application\ Support/Oracle/Java
    rm -r ~/"Library/Application Support/Oracle/Java"
  3. Enter your admin password when you are asked.

You must learn Java macOS uninstall and remove Java from Mac successfully, and share your joy with more people~

 

Final thoughts

Java macOS uninstall is easy to realize through its installer file, Finder, Terminal, and iBoysoft MagicMenu. But only iBoysoft MagicMenu is the only one to remove Java completely from Mac the most quickly and easily for the app and the leftovers.