在 Eclipse 中为 Mac OS X 上的 JDK7u4 设置什么 JRE 主页?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10356841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What JRE home to set in Eclipse for JDK7u4 on Mac OS X?
提问by Jonas
I downloaded JDK7u4 for Mac OS X, and installed it.
Now I would like to setup Eclipse to use this JDK. In Preferences > Java > Installed JREs
what location should I set for JRE home? I installed it on the default location.
我为 Mac OS X 下载了 JDK7u4,并安装了它。现在我想设置 Eclipse 来使用这个 JDK。Preferences > Java > Installed JREs
我应该将 JRE home 设置在什么位置?我将它安装在默认位置。
采纳答案by user151019
See Oracles's JDK release notes
In the "JRE Home:" field, type "/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home"
在“JRE Home:”字段中,输入“/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home”
Note you will have to type it as the open dialog finds a OSX bundle at "/Library/Java/JavaVirtualMachines/1.7.0.jdk/ and will not browse into it
请注意,您必须键入它,因为打开的对话框会在“/Library/Java/JavaVirtualMachines/1.7.0.jdk/”中找到一个 OSX 包,并且不会浏览到它
回答by ebullient
See this? http://code.google.com/p/openjdk-osx-build/wiki/EclipseWithOpenJDK
看到这个了吗? http://code.google.com/p/openjdk-osx-build/wiki/EclipseWithOpenJDK
Home dir would be: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/
主目录将是:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/