MacOS – How to uninstall Java 1.8 under OS X 10.10 Yosemite

javamacosoracle

There are a few answers on old questions about the same issue under Lion / Mountain Lion. Now with Java 1.8 and OS X 10.10 I wonder if anything has changed? Would be great to have exact removal steps.

It really is asked too much, for Oracle to provide a proper uninstaller?

Best Answer

http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jre.html#A1096890 says

To uninstall the JRE, you must have Administrator privileges and execute the remove commands either as root or by using the sudo(8) tool.

Remove one directory and one file (a symlink), as follows:

  • Navigate to /Library/Internet Plug-Ins and remove the JavaAppletPlugin.plugin directory.

  • Navigate to /Library/PreferencePanes and remove JavaControlPanel.prefpane.

Do not attempt to uninstall Java by removing the Java tools from /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

Done that. Looking good. I still think it's bad intentions behind not offering an uninstaller. Glad this is off my system.

Commands for the ‘Terminal’ly-inclined:

sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane