问题描述
我正在尝试从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>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?
推荐答案
您需要升级至少已经出了一个多月。另请参阅。
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!