Skip to content

Instantly share code, notes, and snippets.

@ShawonAshraf
Last active October 30, 2018 08:28
Show Gist options
  • Save ShawonAshraf/66ef1284d3aaae0959e03cd116e5d26b to your computer and use it in GitHub Desktop.
Save ShawonAshraf/66ef1284d3aaae0959e03cd116e5d26b to your computer and use it in GitHub Desktop.
Completely removing Oracle JDK, JRE from macOS
sudo rm -rf /Library/Java/JavaVirtualMachines/*.jdk
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment