Eclipse 开普勒 Java 8

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

Eclipse Kepler Java 8

eclipsejava-8

提问by Liam Potter

I want to start using Java 8 with Eclipse but I don't know how to install it - I can't find any tutorials on it. I am using Eclipse Kepler and have added a JRE for JDK 8 to the IDE but it won't let me continue to create the project because of a compliance problem with the JRE versions. How can I use Java 8 with the Eclipse Kepler IDE?

我想开始在 Eclipse 中使用 Java 8,但我不知道如何安装它 - 我找不到任何关于它的教程。我正在使用 Eclipse Kepler 并在 IDE 中添加了 JDK 8 的 JRE,但由于 JRE 版本的合规性问题,它不会让我继续创建项目。如何在 Eclipse Kepler IDE 中使用 Java 8?

回答by winne2

Have a look at this bug reportfrom time to time for progress on Java 8 in Eclipse's JDT.

不时查看此错误报告,了解 Eclipse JDT 中 Java 8 的进展。

EDIT: For Kepler you need SR2 (4.3.2) and the Java 8 feature patch. Starting with I20140318-0830 all Luna (4.4) buildscontain support for Java 8 "out-of-the-box". The final version of Eclipse Luna (4.4) will be released at the end of June 2014.

编辑:对于开普勒,您需要 SR2 (4.3.2) 和 Java 8功能补丁。从 I20140318-0830 开始,所有Luna (4.4) 版本都包含对 Java 8“开箱即用”的支持。Eclipse Luna (4.4) 的最终版本将于 2014 年 6 月底发布。

回答by bigdev.de

Now, after Java 8 is released, there is a feature patch, but only for Kepler SR2 (4.3.2). Installation via

现在,Java 8 发布后,有一个功能补丁,但仅限于Kepler SR2 (4.3.2)。安装方式

Help > Install New Software... > 'Work with': http://download.eclipse.org/eclipse/updates/4.3-P-builds/

帮助 > 安装新软件... > '使用':http: //download.eclipse.org/eclipse/updates/4.3-P-builds/

see Tutorial Installing Java 8 on Eclipse Kepler

请参阅在 Eclipse Kepler 上安装 Java 8 的教程

回答by user2964396

Early access builds of Eclipse with Java 8 support are available. Installation instruction can be found here.

提供支持 Java 8 的 Eclipse 早期访问版本。安装说明可以在这里找到。

回答by VonC

Wayne Beaton(Director of Open Source Projects at the Eclipse Foundation) just published (February 2014) an article on "Building and Running Java 8 Support" (with Eclipse Luna 4.4Mx).

Wayne BeatonEclipse 基金会开源项目总监)刚刚(2014 年 2 月)发表了一篇关于“构建和运行 Java 8 支持”(使用 Eclipse Luna 4.4Mx)的文章。

It includes:

这包括:



For Eclipse Kepler 4.3+, leeormentions in the comments:

对于 Eclipse Kepler 4.3+,leeor在评论中提到:

As of Feb 21st, you can install the beta 8 JDT via "install new software..." in Eclipse (I use Kepler) here: JDT/Eclipse Java 8 Support (BETA)

截至 2 月 21 日,您可以install new software...在 Eclipse 中通过“ ”安装 beta 8 JDT (我使用 Kepler):JDT/Eclipse Java 8 Support (BETA)

http://build.eclipse.org/eclipse/builds/4P/siteDir/updates/4.3-P-builds

回答by Abdennour TOUMI

回答by Rory Guo

Java8 support for Eclipse Kepler SR2has been removed from eclipse marketplace. You can access the archive here. Download the zipped repo and install it as a local archive update site.

Java8 对 Eclipse Kepler SR2 的支持已从 Eclipse 市场中删除。您可以在此处访问存档。下载压缩的 repo 并将其安装为本地存档更新站点。

回答by Arjun Thakur

I am assuming that you have installed Java 8, JRE 8 and configured them (setting class paths etc.). Follow the steps. Go to Help->Eclipse market place In the search box type "java 8 kepler" The first link that appears is Java 8 support for Kepler SR2 select it and install it. It will take a few minutes. You may need to restart Eclipse after completion.

我假设您已经安装了 Java 8、JRE 8 并配置了它们(设置类路径等)。按照步骤。转到 Help->Eclipse market place 在搜索框中输入“java 8 kepler” 出现的第一个链接是 Java 8 support for Kepler SR2 选择它并安装它。这将需要几分钟。完成后您可能需要重新启动 Eclipse。

回答by Adheep Mohamed Abdul Kader

The problem is that the version of Kepler your using might not have the support for Java8. You can either install the Java8 Patch from market place if your using SR2 version

问题是您使用的 Kepler 版本可能不支持 Java8。如果您使用的是 SR2 版本,则可以从市场安装 Java8 补丁

or

或者

You can directly download Eclipse Kepler SR2 from here, which comes with default support for Java8

您可以直接从这里下载 Eclipse Kepler SR2 ,它默认支持 Java8