如何在Eclipse中更改工作区JRE [英] How to change workspace JRE in Eclipse
问题描述
在Eclipse中创建新的Java项目时,我收到以下警告:当前工作区使用1.4 JRE ...
While creating new Java project in Eclipse I got following warning "The current workspace uses 1.4 JRE..."
我的系统上有JRE7。我在 eclipse.ini中添加了以下行:
I have JRE7 on my system. I have added following lines in eclipse.ini
-vm
C:\Java\jre7\bin\javaw.exe
我已经添加JRE7到通过Windows安装JREs
- >首选项 - >安装的JRE。
仍然在编译器
选项卡我只能看到编译器合规级别
至6.
如何将工作区JRE更改为JRE 7?
I have added JRE7 to Installed JREs
through Windows -> Preferences-> Installed JREs.
Still under Compiler
tab I can see only compiler compliance level
till 6.
How can I change workspace JRE to JRE 7 ?
推荐答案
Java 7支持仅适用于 Eclipse Indigo SR1 (约一个月前发布)。所以,升级Eclipse。
Java 7 support is only available since Eclipse Indigo SR1 (released about a month ago). So, upgrade Eclipse.
这篇关于如何在Eclipse中更改工作区JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!