eclipse 需要传统的 Java SE 6

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26721749/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:10:14  来源:igfitidea点击:

eclipse needs legacy Java SE 6

javaeclipse

提问by MOHRE

I updated my mac to Yosemite 10.10. Now it gives me this error:

我将我的 Mac 更新到了 Yosemite 10.10。现在它给了我这个错误:

To open “Eclipse.app” you need to install the legacy Java?SE?6 runtime.

What should I do?

我该怎么办?

回答by Pier-Alexandre Bouchard

Java JDK 1.6 is not installed on your computer.

您的计算机上未安装 Java JDK 1.6。

You probably installed Java JDK 1.7 or 1.8 before the Yosemite update.

您可能在 Yosemite 更新之前安装了 Java JDK 1.7 或 1.8。

If you don't want to install JRE6 at all and simply use JRE7 or JRE8 without symlinking it to the JRE6 either you can do the following solution as described by Nikolas Grottendieck here.

如果您根本不想安装 JRE6,而只是使用 JRE7 或 JRE8 而没有将其符号链接到 JRE6,那么您可以执行 Nikolas Grottendieck此处所述的以下解决方案。

回答by Sairam Krish

We don't need to install JDK1.6. I am repeating my answer to a similar question.

我们不需要安装JDK1.6。我在重复我对类似问题的回答

edit Info.plist file, in your jdk, for example:

在 jdk 中编辑 Info.plist 文件,例如:

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Info.plist

update JVMCapabilities dictionary to have following values:

更新 JVMCapabilities 字典以具有以下值:

          <key>JVMCapabilities</key>
            <array>
                    <string>CommandLine</string>
                    <string>JNI</string>
                    <string>BundledApp</string>
                    <string>WebStart</string>
                    <string>Applets</string>
            </array>