How To Uninstall and Reinstall Java on Mac OS X?

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.

Download Java for OS X 2015-001 
http://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg


This package is exclusively intended for support of legacy software and installs the same deprecated version of Java 6 included in the 2014-001 and 2013-005 releases.

Quit any Java applications before installing this update.

Now you can reinstall the current java runtime directly from: https://java.com/en/

No comments:

Powered by Blogger.