问题描述
我尝试从jre6和jdk6升级到jre7和jdk7。
我使用eclipse的程序,我下载并安装了jre7和jdk7:
C:\program files\java\
现在当我进入eclipse我想更改使用的编译器所以我去:
窗口>首选项> java>编译器
但是只出现1.3,1.4,1.5和1.6
我也输入:
window> preferences> 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>compilerbut there appears only 1.3,1.4,1.5 and 1.6I've also entered:window>preferences>java>Installed JREsand added the jre7 version. But the compiler I can't change.how do I change my eclipse compiler?
推荐答案
您需要升级至少,已经推出了一个多月。另请参见 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:
下面是一个使用diamond操作符和ARM的可执行代码片段示例:
And here's an example of executabele code snippet using diamond operator and ARM:
>
这篇关于将eclipse的java编译器更改为jdk7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!