Mac OS 卸载 JDK

输入
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefpane

查找当前版本
输入:ls /Library/Java/JavaVirtualMachines/
输出:jdk-9.0.1.jdk

sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk

你可能感兴趣的:(Mac OS 卸载 JDK)