从Mac中删除Java 8 JDK [英] Removing Java 8 JDK from Mac
问题描述
所以我前一段时间安装了JDK 8的测试版来看一些例子。我现在肯定想过,很容易在版本之间进行更改。
So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it's easy to change between versions.
使用IntelliJ进行一些Play开发。出于某种原因,IntelliJ正在使用8进行编译,即使:
Doing some Play development with IntelliJ. For some reason, IntelliJ is compiling with 8 even though:
- 我在首选项中设置了编译器以使用1.6
- 据说它通过外部构建使用SBT,但是来自命令行的sbt工作
- JAVA_HOME指向JDK 6.
如果我转到Java首选项页面,它确实显示已安装8,但没有选项可以卸载它,它没有看到任何其他版本。
If I go to the Java Preferences page, it does show 8 installed, but there is no option to uninstall it and it doesn't see any of the other versions.
当我执行哪个java
时,它告诉我 / usr / bin / java
和我做 / usr / bin / java -version
然后它返回1.6。
When I do which java
, it tells me /usr/bin/java
and I do /usr/bin/java -version
and it returns 1.6.
注意:带有小小的摆弄,你可以使用IntelliJ和JDK7,参见这里。
Note: with a little fiddling, you can use IntelliJ and JDK7, see here.
推荐答案
我能够在小牛队中成功地执行以下步骤取消jdk 8 :
I was able to unistall jdk 8 in mavericks successfully doing the following steps:
运行此命令删除JDK
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
如果要删除插件,请运行这些命令
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -rf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper
sudo rm -rf /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -rf /Library/Preferences/com.oracle.java.Helper-Tool.plist
这篇关于从Mac中删除Java 8 JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!