1.Mac卸载JDK环境
1.卸载Library下的内容
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -rf /Library/PreferencesPanes/JavaControlPanel.prefpane
2.删除JDK版本内容
cd /Library/Java/JavaVirtualMachines/ sudo rm -rf * #将全部java版本卸载
2.Mac卸载JAVA
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane sudo rm -fr ~/Library/Application\ Support/Java
参考链接:https://www.java.com/zh-CN/download/help/mac_uninstall_java.html