安装:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
下载安装双击安装
卸载:
https://www.java.com/zh_CN/download/help/mac_uninstall_java.xml
在“终端”窗口中,复制和粘贴命令:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java