官方文档:
https://www.java.com/zh_CN/download/help/mac_uninstall_java.xml
卸载步骤:
1.删除终端命令:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane
2.删除JDK包
cd /Library/Java/JavaVirtualMachines/
sudo rm -rf jdk[_update].jdk
3.删除偏好设置面板图标
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane