The Wayback Machine - https://web.archive.org/web/20180212011849/https://java.com/en/download/help/mac_uninstall_java.xml
Java.com

Download Help

Printable Version

How do I uninstall Java on my Mac?


This article applies to:
  • Platform(s): Mac OS X
  • Java version(s): 7.0, 8.0

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:

  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
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.


Can I restore Apple Java 6 after uninstalling Oracle Java?

Yes, see the instructions on the Apple website Restore Apple Java 6. 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 Uninstall JDK.


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 Uninstall JDK.


You might also be interested in:




Find expert help on Java installation and setup

Select Language | About Java | Support | Developers | Feedback
Privacy  | Terms of Use | Trademarks | Disclaimer

Oracle