M1芯片Macbookpro 卸载 Java jdk
1.进入目录查看jdk环境
cd /Library/Java/JavaVirtualMachines
ls
2.删除jdk
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk环境
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk
3.卸载JRE
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefpane
4.检查是否已卸载
java -version
标签:Java,jdk,sudo,Library,rf,M1,rm
From: https://www.cnblogs.com/xiaoli520/p/17541571.html