How do I uninstall Java on my Mac? This article applies to:
- Platform: Macintosh OS X
- Java Version: 7.0, 8.0
Uninstalling Oracle Java using a terminal
Note : To uninstall Java, you must have administrator privileges, and you must perform the delete command as root or using the sudo
tool.
Delete a directory and a file (symbolic link) as shown below:
- Click the Finder icon located in the docking bar
- Click the Utilities folder
- Double-click the terminal icon
- In the terminal window, copy and paste the command:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java
Do not attempt to /usr/bin
uninstall Java by removing the Java tool. This directory is part of the system software and Apple resets all changes the next time the update is performed on the operating system.
Note: The above is the official website uninstall step, according to the above uninstall, to enter the/library/java/javavirtualmachines from the Finder, and then delete the jdk1.8.xxx, so that the complete uninstall completed.
How do I install Java on my Mac?
Brew Cask Reinstall Java
After obtaining the Java_home configuration in the/etc/profile file
Turn from: http://blog.csdn.net/haozhugogo/article/details/54809545 pro-Test feasible.
"Go" How to uninstall Java on Mac