将eclipse的java编译器改成jdk7 [英] changing eclipse's java compiler to jdk7

查看:178
本文介绍了将eclipse的java编译器改成jdk7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从jre6和jdk6升级到jre7和jdk7。
我的程序使用eclipse,我下载并安装了jre7和jdk7上:
C:\program files\java\
现在当我进入eclipse我想改变使用的编译器所以我去:
窗口>首选项> java>编译器
但出现只有1.3,1.4,1.5和1.6
我也输入:
窗口>首选项> java >安装JRE
并添加了jre7版本。但编译器我不能改变。
如何更改我的eclipse编译器?

I'm trying to upgrade from jre6 and jdk6 to jre7 and jdk7. I program using eclipse, i downloaded and installed the jre7 and jdk7 on: C:\program files\java\ now when I enter eclipse i want to change the used compiler so i go to: window>preferences>java>compiler but there appears only 1.3,1.4,1.5 and 1.6 I've also entered: window>preferences>java>Installed JREs and added the jre7 version. But the compiler I can't change. how do I change my eclipse compiler?

推荐答案

您需要升级至少 Eclipse Indigo SR1 已经出了一个多月。另请参阅 Eclipse宣布完整的Java 7支持

You need to upgrade to at least Eclipse Indigo SR1, which has been out for over a month. See also Eclipse announces full Java 7 support.

作为证据,以下是我的Indigo SR1首选项的屏幕:

As evidence, here's a screen from my Indigo SR1 preferences:

这里是一个使用钻石操作符和ARM的executabele代码片段的示例:

And here's an example of executabele code snippet using diamond operator and ARM:

这篇关于将eclipse的java编译器改成jdk7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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