Eclipse将编译器的符合性更新为1.7 [英] Eclipse Updating the compiler compliance to 1.7

查看:137
本文介绍了Eclipse将编译器的符合性更新为1.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新我的eclipse工作区的编译器符合性方面遇到了一些麻烦(实际上我使用的是RTC,但它基本上是eclipse)。
目前,它使用1.6的jdk,所以我可以将JDK的合规性更改为1.6的限制。

I am having some trouble updating the compiler compliance of my eclipse workspace (I am actually using RTC, but it is essentially eclipse). Currently, it uses a jdk of 1.6 so I can change the JDK compliance to a limit of 1.6.

但是,我使用jdk 1.7作为我的项目 - 我把它添加为JRE -

However, I am using jdk 1.7 for my project -I have added it as a JRE -

preferences --> Java --> Installed JRE --> added jre with the jdk 1.7 directory.

但是,即使我将其用作默认JRE,也不允许我更改编译器的合规性级别为1.7。

However, even though I use this as the default JRE it does not allow me to change the compiler compliance level to 1.7.

我猜想有一些我错过的东西。

I am guessing that there is something I am missing.

任何帮助都会很大赞赏

推荐答案

编译器合规级别是eclipse中的版本相关。如果您使用Eclipse 3.7或更低版​​本,那么您将不会得到1.7的合规性。使用Eclipse JUNO或更高版本。

The Compiler compliance level is Version Dependent in eclipse. If you are using Eclipse 3.7 or lower then you won't get 1.7 compliance. Use Eclipse JUNO or higher.

有关 JDT Core 7 及其发行相关信息

更新:

甚至 eclipse 3.7.1 版本支持Java 7功能和合规级别。

Even eclipse 3.7.1 version supports Java 7 features and compliance level.

这篇关于Eclipse将编译器的符合性更新为1.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆