To uninstall AdoptOpenJDK installed via Homebrew,

brew uninstall adoptopenjdk8

To uninstall OpenJDK installed via Homebrew,

brew uninstall openjdk8
Answer from user5780831 on Stack Overflow
🌐
Oracle
java.com › en › uninstall › uninstall_instructions.html
Uninstall instructions for Java
The Add/Remove control panel displays a list of software on your system, including any Java software products that are on your computer. Select any that you want to uninstall by clicking on it, and then click the Remove button.
🌐
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 · Remove one directory and one file (a symlink), as follows:
Discussions

macos - How to uninstall java from mac completely? JRE and JDK - Stack Overflow
I did navigate to /Library/Java/JavaVirtualMachines and removed the jdk, and there is nothing in that folder anymore. But my terminal shows I have some version of java, so I am a little confused, I... More on stackoverflow.com
🌐 stackoverflow.com
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
How to uninstall Java from macbook pro M1… - Apple Community
My JavaVirtualMachine directory isn’t available and I want to uninstall my present java. How to do it? ... How do I remove Java from my MAC given the facts below? I need to remove Java from my Mac. More on discussions.apple.com
🌐 discussions.apple.com
October 20, 2021
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
🌐
Oracle
java.com › en › download › uninstalltool.jsp
Java Uninstall Tool for macOS
» Troubleshoot Java » Instructions for Uninstalling Java » Request Uninstall Help » Other help · If you are experiencing issues while uninstalling Java, please see the Java uninstall instructions. If you are still having trouble uninstalling out-of-date versions of Java, you can request ...
🌐
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. Click on the Finder icon located in your dock.
🌐
Nektony
nektony.com › home › blog › how to uninstall java on a mac completely
How to uninstall Java on Mac - Detailed steps
July 14, 2025 - In this step-by-step guide, we come up with options and possible workarounds on how to remove Java from a Mac entirely. ... Delete Mac apps quickly and reliably using App Cleaner & Uninstaller.
🌐
MacPaw
macpaw.com › how to › optimization › apps
How to uninstall Java on Mac step by step
February 8, 2026 - If you don’t have the Java installer, you can download it here. When the installer opens, type in your Mac admin password. Click Remove and wait for it to uninstall.
Find elsewhere
🌐
Mac Install Guide
mac.install.guide › java › uninstall
Uninstall Java on Mac · Mac Install Guide · 2026
Uninstall Java on Mac. macOS uninstall for JDKs, files, caches, and shell configuration. Clean up Homebrew, delete Oracle files, and verify Java removal.
🌐
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 - If you don't have the JDK installed, you can instead jump to this section to learn how to remove the Java Deployment cache. ... Open the Java installer. If you still have the Java installer on your Mac, you can use it to uninstall Java.
🌐
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.

🌐
MacKeeper
mackeeper.com › blog › mac tutorials › how to uninstall java on a mac
How to Uninstall Java on a Mac
September 24, 2025 - Step 1. MacKeeper > Smart Uninstaller ... Click Remove · The most straightforward way to remove Java from a Mac is by using the Terminal command line....
🌐
Minicreo
minicreo.com › uninstall java mac › omni remover › a guide on how to uninstall java on mac big sur
[Uninstall Java Mac] How To Completely Uninstall Java on Mac Big Sur | MiniCreo
January 10, 2024 - By Tasnia Salinas, on January 12, 2021, in Mac Uninstaller · In this article, we help you to learn How To Completely Uninstall Java on Mac Mojave by using our dedicated Mac App Uninstaller software - Omni Remover.
🌐
CleanMyMac
cleanmymac.com › blog › uninstall-java-jdk-mac
How to uninstall JDK and Java on Mac
February 27, 2025 - Looking for tips on the correct way to uninstall Java on a Mac? Check out this easy-to-follow guide. Remove Java safely and keep your Mac performing well.
🌐
Codejava
admin-api.codejava.net › java-se › uninstall-jdk-on-macos
How to Completely Uninstall JDK on macOS
April 29, 2022 - Then type the following command to remove a JDK installation completely from macOS: sudo rm -rf jdk-versionThis command will be executed under root privilege (password required) - the specified JDK directory will be deleted recursively and forcefully.If you uninstall JDK 1.8, you also need ...
🌐
javaspring
javaspring.net › blog › java-uninstall-mac
Uninstalling Java on Mac: A Comprehensive Guide — javaspring.net
Download and install AppCleaner Go to the official AppCleaner website and download the software. Install it on your Mac. Uninstall Java using AppCleaner Oracle does not provide an official uninstaller for Java on macOS. Instead, you can manually remove the JDK installation...
🌐
javaspring
javaspring.net › blog › osx-uninstall-java
Uninstalling Java on macOS: A Comprehensive Guide — javaspring.net
Remove the Java Virtual Machine: Once you've identified the version you want to remove, navigate to the /Library/Java/JavaVirtualMachines directory. For example, if you want to remove Java 1.8, run the following command: sudo rm -rf ...