How To Uninstall OpenJDK On A Mac OS

If you’re good at using Terminal and Finder on your Mac, you can uninstall OpenJDK using the library command, the Java installation file, or the Terminal itself. If you don’t feel like going the hard way, you can also use a third-party app like PowerMyMac or Osx Uninstaller.

Uninstalling OpenJDK from a Mac can be a daunting task for someone unfamiliar with the process. If you’re new to the world of Mac computers, or if you don’t understand how to use the Terminal application, this is a task that can make your brain hurt. Luckily, you have this guide to help you. In this guide, I’ll show you how to uninstall OpenJDK manually for those who are tech-minded and also suggest a couple of third-party solutions if you want to get the job done quickly and easily. Related

Use Terminal To Uninstall JDK

Removing Java from your Mac using the Terminal is a bit more involved than other means. If you’re a tech-savvy person, then this way will give you the most peace of mind, knowing that every Java file on your system will be removed. If you are not tech-savvy, then you may want to try one of the easier options. Open the Terminal application by typing “terminal” in Spotlight or find it in the Applications folder under Utilities.
  1. Input the command sudo rm -rf/Library/Java/JavaVirtualMachines/{put version number here} to remove the JavaDevelopmentKit directory associated with OpenJDK.
  2. Enter your admin password when prompted, and enter y for yes to proceed with the uninstallation process.
  3. Then, type in sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin and press enter. This will delete the Java plugin folder.
  4. After that, type in sudo rm -rf ~/Library/Application\ Support/Oracle/Java and press enter. This will delete any Java-related files from your home library.
  5. Next, type in sudo rm -rf /System/Library/Frameworks/JavaVM.framework and press enter. This will remove the framework for running Java applications.
  6. Finally, type in sudo rm -rf /usr/bin/java to remove the executable file associated with running Java applications. Press enter to complete the process of removing Java from your system.

Using The Libary Command

Removing OpenJDK from your Mac using the Library command is a little bit easier than using Terminal, but still requires a bit of technical know-how:
  1. Open a Finder window and click on the Go menu at the top of your screen.
  2. Select Go to Folder from this menu and type in /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/ – this will open up a new folder with several files inside it.
  3. Now, select all of these files and delete them by dragging them into the Trash bin.
  4. After that, navigate back to your ~/Library/Application Support folder and delete any files related to Java (e.g., jre, jdk).
  5. Finally, navigate to /System/Library/Frameworks/JavaVM.framework and delete any remaining files associated with Java – after doing so, Java should be completely removed from your system.

Use The Java Installation File

Uninstalling OpenJDK on a Mac using the Installation File is an effective way to get rid of any unwanted versions. Here’s what you need to do:
  1. Open Finder, then open the Applications folder. Select the installable OpenJDK application file.
  2. Right-click on it and select the Move to Trash option from the drop-down menu to delete it from your computer.
  3. Enter your admin password when prompted, and enter y for yes to move forward with this process.
  4. After that, open ~/Library/Application Support/Oracle/Java and delete any remaining files related to Java – once complete, you should have successfully removed the application from your Mac.

Using Third-Party Applications

For those who are not so tech-savvy, don’t worry. There are a few third-party solutions you can use for this problem. Here are the two best solutions you can find:

iMyMac’s PowerMyMac

Removing Java from your Mac using iMyMac’s PowerMyMac is an easy and efficient way to get rid of any unwanted installations. Here’s what you need to do:
  1. Go to the official website to download the software
  2. Launch PowerMyMac and click on the App Uninstaller tab.
  3. Select Java from the list of applications, then click on Scan Now.
  4. Once the scan is complete, select the files related to Java (jre, jdk) and click Clean.
  5. You can find this button on the toolbar.
  6. Once these files have been uninstalled, you will see the message Clean Completed. OpenJDK has now been removed from your system.

Osx Uninstaller

Removing Java from your Mac using Osx Uninstaller is easy and can be done with just a few clicks. Here’s what you need to do:
  1. Download the most up-to-date version of the Osx Uninstaller Application from the official website and install it onto your system.
  2. Open up the Osx Uninstaller application and find OpenJDK in its list.
  3. Select it, then click the Uninstall Now button to start the removal process for that particular item.
  4. Follow the onscreen instructions to complete the uninstall process.
  5. After that, open ~/Library/Application Support/Oracle/Java and delete any remaining files related to Java – once complete, you should have successfully removed the application from your Mac.
Conclusion As you can see, there are many ways to remove Open JDK from your Mac. Some of these ways will be easier if you’re good at computers. However, the third-party solutions are great for almost everyone. Regardless of which method you choose, make sure to delete any remaining files related to Java from ~/Library/Application Support/Oracle/Java for a complete uninstallation. With this process complete, OpenJDK will be completely removed from your Mac.