I was able to unistall jdk 8 in mavericks successfully doing the following steps:

Run this command to just remove the JDK

sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk

Run these commands if you want to remove plugins

sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -rf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper
sudo rm -rf /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -rf /Library/Preferences/com.oracle.java.Helper-Tool.plist
Answer from Samuel Alpoim on Stack Overflow
🌐
Oracle
java.com › en › download › uninstalltool.jsp
Java Uninstall Tool for macOS
» Troubleshoot Java » Instructions for Uninstalling Java » Request Uninstall Help » Other help
🌐
Miami
newsletter.miami.edu › _assets › acad-bufin › umit › pdf › removing-java-from-your-mac.pdf pdf
Page 1 of 3 How to Remove Java from MacOS
1. Restart your Mac and log in. 2. Go to https://www.java.com/en/download/uninstalltool.jsp and click “I agree to the terms · and want to continue”. 3. JavaUninstallTool.dmg will be downloaded to your default downloads location. Double · click the dmg file to open it. 4. This will open the Java Uninstall Tool in a new window. Double click the icon for ·
Discussions

How to uninstall Java
I did this to remove Oracle JDK 8. https://www.java.com/en/download/help/mac_uninstall_java.html For OpenJDK it looks like you just have to delete the JDK directory. https://www.codejava.net/java-se/uninstall-jdk-on-macos More on reddit.com
🌐 r/MacOS
2
3
August 6, 2022
macos - Removing Java 8 JDK from Mac - Stack Overflow
Also, after this steps, MAC automatically takes alternative java as default if already installed. 2015-06-06T12:12:58.317Z+00:00 ... Just to be clear, this is to uninstall all Java stuff. If you for some reason want to keep a different version of Java around, don't remove anything but the JDK ... More on stackoverflow.com
🌐 stackoverflow.com
Uninstalling JAVA From MAC
We had a MAC computer that we wanted to uninstall JAVA from. We ran the following commands: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm -fr ~/Library/Application\ Support/Oracle/Java and rm -r ... More on community.spiceworks.com
🌐 community.spiceworks.com
4
2
September 11, 2024
How do I remove Java from my Mac? - Apple Community
You may also have the Java Development ... intended for writing Java software. Some Java software actually relies on the JDK, which also includes a copy of the JRE. You may also have multiple JDKs and JREs installed on your machine. I'm going to try the official instructions at Oracle's website: How do I uninstall Java on ... More on discussions.apple.com
🌐 discussions.apple.com
September 15, 2017
People also ask

Why need to uninstall Java on Mac?
Because its has potential security vulnerabilities, consumes system resources, takes up a significant amount of disk space...
🌐
iboysoft.com
iboysoft.com › home › how to tips › how to completely uninstall java on macos [full guide]
Java macOS Uninstall with Top 4 Ways [Complete Removal]
Is it safe to remove Java from Mac?
Certainly. If you no longer need it, uninstalling Java on Mac is so safe. However, complete removal of Java needs you to clean the related files or folders in Finder.
🌐
iboysoft.com
iboysoft.com › home › how to tips › how to completely uninstall java on macos [full guide]
Java macOS Uninstall with Top 4 Ways [Complete Removal]
How do I completely remove Java form my Mac?
The easiest and cleanest way is to use CleanMyApp, which can scan and delete the app and the leftovers together in a few clicks.
🌐
iboysoft.com
iboysoft.com › home › how to tips › how to completely uninstall java on macos [full guide]
Java macOS Uninstall with Top 4 Ways [Complete Removal]
🌐
Oracle
java.com › mac_uninstall_faq
How do I uninstall Java on my Mac?
Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool.
🌐
Oracle
java.com › en › download › help › macOS_uninstaller_toolfaq.html
Information about the Java uninstaller tool for macOS
The Java Uninstall tool helps you improve your computer security by simplifying the process of finding and uninstalling Java. Operating system: macOS 10.9 or higher Browsers: Not browser specific Java version: Can remove Java versions 7 and above.
🌐
Reddit
reddit.com › r/macos › how to uninstall java
r/MacOS on Reddit: How to uninstall Java
August 6, 2022 -

I installed several versions of the JDK, both official and open source. But I no longer need them. How exactly do you "uninstall" Java on macOS?

The best I can figure is just to go into HD/Library/Java and just delete everything there. Slightly new to macOS so wondering if this is right. The installers themselves don't give any means of uninstalling.

🌐
Nektony
nektony.com › home › blog › how to uninstall java on a mac completely
How to uninstall Java on Mac - Detailed steps
July 14, 2025 - ... Delete Mac apps quickly and reliably using App Cleaner & Uninstaller. It is an uninstall tool for Mac designed to remove various applications, programs, and its remaining files in just a few clicks without a risk of error.
Find elsewhere
🌐
iBoysoft
iboysoft.com › home › how to tips › how to completely uninstall java on macos [full guide]
Java macOS Uninstall with Top 4 Ways [Complete Removal]
November 27, 2025 - 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 CleanMyApp, to get you rid of the boring and repeated finding and deleting. ... Download, install, and launch CleanMyApp. Click Grant Access when it is prompted. Look for Java in the Applications list, then tick it.
🌐
Mac Install Guide
mac.install.guide › java › uninstall
Uninstall Java on Mac · Mac Install Guide · 2026
This guide shows you how to uninstall Java fully and carefully from your Mac. You will learn how to remove JDK and JRE installations, delete leftover files, and verify that Java is gone. The instructions cover removal for Java installed with vendor PKGs, Homebrew uninstallation, and cleanup for Oracle-specific components.
🌐
Apple Community
discussions.apple.com › thread › 4772629
How do I remove Java from my Mac? - Apple Community
September 15, 2017 - Macology's reply is incorrect. While his instructions are the official Oracle instructions they merely delete the JavaApplePlugin. That's not an uninstall. Given (1) the ungoing security problems with Java in the browser and (2) that java -version does not report what you expect (Java Version 7 Update X), I'd love to find full uninstlall directions.
🌐
Oracle
java.com › en › uninstall › uninstall_instructions.html
Uninstall instructions for Java
In the Terminal window Copy and Paste the commands below: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm -fr ~/Library/Application\ Support/Oracle/Java Do not attempt to uninstall Java by removing the Java tools from /usr/bin.
🌐
MacKeeper
mackeeper.com › blog › mac tutorials › how to uninstall java on a mac
How to Uninstall Java on a Mac
September 24, 2025 - When you remove apps from your Mac, it’s crucial to remove all their leftovers. To remove Java, we recommend using MacKeeper’s Smart Uninstaller. Our tool quits memory-draining apps, removes plugins, browser extensions, and leftover files ...
🌐
MacPaw
macpaw.com › how to › optimization › apps
How to uninstall Java on Mac step by step
February 8, 2026 - The easiest way to uninstall Java is to use an application designed to uninstall apps completely. We recommend CleanMyMac. It will track down all the files an application has placed on your Mac and remove them, leaving no trace of the app on ...
🌐
wikiHow
wikihow.tech › computers and electronics › operating systems › mac › how to remove java: macos uninstallation guide and tips
How to Remove Java: MacOS Uninstallation Guide and Tips
January 17, 2026 - The best way to uninstall Java on macOS is via the Terminal, using the remove command. If you still have the installer for your version of Java, you can use it to uninstall Java.
🌐
UConn
kb.uconn.edu › space › IKB › 10733127448 › Uninstalling+Java+on+Mac
Uninstalling Java on Mac - Information Technology - UConn Knowledge Base
If you are comfortable using the command prompt, Java can be completely uninstalled using several commands. The remove command, rm, can be either executed as root or by using the sudo tool.
🌐
CleanMyMac
cleanmymac.com › blog › uninstall-java-jdk-mac
How to uninstall JDK and Java on Mac
February 27, 2025 - Using this tool, you'll soon discover that managing installed apps and removing outdated software is much easier than manual methods. If you'd like to know more about safely removing applications, check out this guide on uninstalling programs on Mac. Now that you know how to uninstall Java Mac, you can remove unnecessary Java files and improve your Mac's security and performance.
🌐
GitHub
gist.github.com › 3d09442ded30e8b11d5ab6f7fa497549
Uninstall Java From Mac · GitHub
Uninstall Java From Mac. GitHub Gist: instantly share code, notes, and snippets.