如何在 Mac 上卸载 Java?
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java
sudo rm -fr /Library/Java/JavaVirtualMachines
java -version
1、从应用程序中 删除掉Idea
2、删除相应的文件
rm -rf ~/Library/Logs/JetBrains/IntelliJIdea*
rm -rf ~/Library/Application\ Support/JetBrains/IntelliJIdea*
rm -rf ~/Library/Caches/JetBrains/IntelliJIdea*
rm -rf ~/Library/Preferences/jetbrains.idea*