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 OverflowHow to uninstall Java
macos - Removing Java 8 JDK from Mac - Stack Overflow
Uninstalling JAVA From MAC
How do I remove Java from my Mac? - Apple Community
Why need to uninstall Java on Mac?
Is it safe to remove Java from Mac?
How do I completely remove Java form my Mac?
Videos
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.
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
You just need to use these commands
sudo rm -rf /Library/Java/*
sudo rm -rf /Library/PreferencePanes/Java*
sudo rm -rf /Library/Internet\ Plug-Ins/Java*
Did you run “sudo uninstall file://” first? The “rm -fr” command is forcing recursive removal of folder items. It will not look in other locations to remove the application or unused dependencies.
Have you considered using a package manager like Homebrew?
There is also an uninstaller project you could try.
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 ~/“Library/Application Support/Oracle/Java”
The first 3 commands were taken from this article:
(https://www.java.com/en/uninstall/uninstall_instructions.html#macOS)
And the 4th command was taken from this article:
(https://www.java.com/en/download/help/deployment_cache.html)
However, our RMM claims this computer still has JAVA. So, do you think these commands would have indeed uninstalled JAVA? Is our RMM likely incorrect?
Thank you.