OSX Java JRE7 JRE8 – Uninstall
source: https://www.java.com/en/download/help/mac_uninstall_java.xml
Uninstall Oracle Java using the Terminal
Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo.
Remove one directory and one file (a symlink), as follows:
- Click on the Finder icon located in your dock
- Click on the Utilities folder
- Double-click on the Terminal icon
- In the Terminal window Copy and Paste the command below:
1 | sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin |
1 | sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane |
Do not attempt to uninstall Java by removing the Java tools from
1 | /usr/bin |
. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.