Skip to content

Instantly share code, notes, and snippets.

@carlosanders
Forked from schnell18/macosx_remove_java9.sh
Last active September 29, 2017 00:33
Show Gist options
  • Save carlosanders/6430639e70c927a5b80e5afdbc7fd6b0 to your computer and use it in GitHub Desktop.
Save carlosanders/6430639e70c927a5b80e5afdbc7fd6b0 to your computer and use it in GitHub Desktop.
MacOS X remove Java 9
# remove java9 mac
# fonte: https://www.java.com/pt_BR/download/help/mac_uninstall_java.xml
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -fr /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -fr /Library/Preferences/com.oracle.java.Helper-Tool.plist
sudo rm -fr ~/Library/Application\ Support/Java
## removendo versoes anteriores
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment