gpt4 book ai didi

java - 如何在 Eclipse 中更改工作区 JRE

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:28:43 25 4
gpt4 key购买 nike

在 Eclipse 中创建新的 Java 项目时,我收到以下警告“当前工作区使用 1.4 JRE...”

我的系统上有 JRE7。我在 eclipse.ini

中添加了以下行
-vm 
C:\Java\jre7\bin\javaw.exe

我已将 JRE7 添加到 Installed JREs 通过 Windows -> Preferences-> Installed JREs。 enter image description here
仍在 Compiler 选项卡下,我只能看到 compiler compliance level 直到 6。
enter image description here
如何将工作区 JRE 更改为 JRE 7?

最佳答案

Java 7 支持仅在 Eclipse Indigo SR1 之后可用(大约一个月前发布)。所以,升级 Eclipse。

关于java - 如何在 Eclipse 中更改工作区 JRE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7861424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com