MacOS Users: Improve the security of your computer by checking for an out-of-date version of Java and removing it by using. » 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 tool. Remove one directory and one file (a symlink), as follows:. Click on the Finder icon located in your dock. Click on Go in the Finder menu. Click on Utilities.
When doing further research, it turns out I had installed the other version that is not a SE development kit and it was just working in web browsers, not for the terminal. For anyone having the same issue, make sure you use the Java SE Development Kit 8.
Double-click on the Terminal icon. 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/Oracle/Java 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. Note: After successfully uninstalling Java, you may remove Java Deployment cache using these. Yes, see the instructions on the Apple website. If you have JDK 7 or later versions installed on your system and you want to restore Apple Java 6, then those JDK versions need to be uninstalled first.
See the instructions to. MORE TECHNICAL INFORMATION Uninstall JDK To uninstall JDK 7 and later versions, you must have Administrator privileges and execute the remove command either as root or by using sudo. See the instructions to. You might also be interested in:.