Java 如何在 Eclipse Indigo 中添加 jdk8

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

How to add jdk8 in Eclipse Indigo

javajava-8

提问by Rakesh KR

I just read How to have Eclipse use JDK8 to compile a project?

我刚刚阅读了如何让 Eclipse 使用 JDK8 编译项目?

What i added jdk8 to eclipse as, enter image description here

我将 jdk8 添加到 eclipse 作为, 在此处输入图片说明

From the answers of How to have Eclipse use JDK8 to compile a project?

来自如何让 Eclipse 使用 JDK8 编译项目的答案

I tried to Update the JDT/Core, JDT/UI bundles from http://dist.springsource.com/snapshot/TOOLS/java8/e43

我试图从http://dist.springsource.com/snapshot/TOOLS/java8/e43更新 JDT/Core、JDT/UI 包

But it shows error as,

但它显示错误,

"Eclipse Java Development Tools Patch for Java 8 Support (BETA)" is not applicable to the current configuration and will not be installed.
"Eclipse Plug-in Development Environment Patch for Java 8 Support (BETA)" is not applicable to the current configuration and will not be installed.

enter image description here

在此处输入图片说明

How Can i fix it ?

我该如何解决?

采纳答案by djangofan

I can say that Java 1.8 does in fact work with Eclipse Luna ( the beta version released around March 17, 2014)or later. I tried it and it was good.

我可以说 Java 1.8 实际上可以与 Eclipse Luna(2014 年 3 月 17 日左右发布的测试版)或更高版本一起使用。我试过了,很好。

Also, I noticed that in the Eclipse Marketplace, there are now plugins to install functionality into Kepler to support JDK1.8. I haven't tried the plugin myself though.

另外,我注意到在 Eclipse Marketplace 中,现在有插件可以将功能安装到 Kepler 中以支持 JDK1.8。不过我自己还没有尝试过这个插件。

回答by PRAVEEN SONI

This is a old topic but I just wanted to point out that I have searched enough to find that Indigo version can't be updated to S.E 1.8 here the link which is given on eclipse website to update the Execution Environment but if you try it will throw error for Indigo.

这是一个老话题,但我只是想指出,我已经搜索了足够多的内容,发现 Indigo 版本无法更新到 SE 1.8,这里是 eclipse 网站上提供的更新执行环境的链接,但如果您尝试它会为 Indigo 抛出错误。

Here is the linkwhere the Information about execution environment is given.

这是提供有关执行环境的信息的链接

Thisshows the step by step to update Execution environment.

显示了逐步更新执行环境。

I have tried to update Execution environment and I got the same error.

我尝试更新执行环境,但遇到了同样的错误。

enter image description here

在此处输入图片说明