删除mac jdk
查看jdk
ls /Library/Java/JavaVirtualMachines/
jdk1.7.0_71.jdk jdk1.8.0_111.jdk jdk1.8.0_241.jdk
删除jdk
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk
删除了上面的jdk,其实终端上还可以看到java -version
那还得删除啊
sudo rm -fr /Library/Internet/Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane sudo rm -fr ~/Library/Application/Support/Java
这个参考:
https://blog.csdn.net/mouday/article/details/81085546
最后放一个jdk下载的地址:
道法自然