简体   繁体   English

Eclipse Kepler SR2 + Java 8

[英]Eclipse Kepler SR2 + Java 8

According to this article It seems to be easy to add Java 8 feature to Eclipse. 根据这篇文章 ,向Eclipse添加Java 8功能似乎很容易。 Somehow it doesn't work for me because I can't use the new syntax and I can't choose enviroment version 1.8 although JDK1.8 is installed and picked in eclipse' settings. 不知怎的,它不适合我,因为我不能使用新语法,我不能选择环境版本1.8,虽然JDK1.8是在eclipse的设置中安装和选择的。 There are no errors while installing feature or restarting eclipse. 安装功能或重新启动eclipse时没有错误。

Platform: Win7 x64 平台:Win7 x64

Eclipse version: Kepler SR2 Build 20140224-0627 Eclipse版本:Kepler SR2 Build 20140224-0627

Any Ideas? 有任何想法吗?

I have created some kind of a graphical tutorial. 我创建了一些图形教程。

Add Java 8 to Eclipse 将Java 8添加到Eclipse

在此输入图像描述

Before the next step, if you still do not have JDK1.8.0 installed, go to Add... button and add your Java 8 JDK to your Eclipse. 在下一步之前,如果您还没有安装JDK1.8.0,请转到Add ...按钮并将Java 8 JDK添加到Eclipse中。 You may ommit the step of changing the Javadoc location if you have not downloaded it to your local disk, it is just for faster access to Javadoc. 如果您没有将Javadoc位置下载到本地磁盘,则可以省略更改Javadoc位置的步骤,这只是为了更快地访问Javadoc。

Add Java 8 SDK to Installed JREs 将Java 8 SDK添加到已安装的JRE

  • Eclipse | Eclipse | Window | 窗口| Preferences 喜好

在此输入图像描述

Add Java 8 Support to your Project 将Java 8支持添加到您的项目中

  • Eclipse | Eclipse | Project | 项目| Properties 属性

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM