To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool. The following method mentioned applies to: Platform(s): Mac OS X Java version(s): 7.0, 8.0 Remove one directory and one file (a symlink), as follows: 1. Click on the Finder icon located in your dock 2.
Click on the Utilities folder 3. Double-click on the Terminal icon 4. In the Terminal window Copy and Paste the commands below: sudo rm -fr /Library/Internet Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm -fr /Library/Application Support/Java Warning: 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. Restore Apple Java 6 after uninstalling Oracle Java Java for OS X 2015-001 installs the legacy Java 6 runtime for OS X 10.11 El Capitan, OS X 10.10 Yosemite, OS X 10.9 Mavericks, OS X 10.8 Mountain Lion, and OS X 10.7 Lion.
As the kb article states, it 'installs the legacy Java 6 runtime' and 'is exclusively intended for support of legacy software'. Apple also advises that you 'Keep your software up to date' and 'If you need Java, download the latest version of Java for OS X directly from Oracle I constantly get the warning about upgrading.