为什么Eclipse引用1.4 JRE? [英] Why does Eclipse reference a 1.4 JRE?

查看:193
本文介绍了为什么Eclipse引用1.4 JRE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试创建一个新的Java项目时,eclipse会告诉我工作空间正在使用1.4 JRE(见截图)。有什么想法可能是这样说的?我甚至没有在我的机器上安装1.4 JRE。

When attempting to create a new Java Project, eclipse is telling me that the workspace is using a 1.4 JRE (see screenshot). Any ideas why it might be saying this? I don't even have a 1.4 JRE installed on my machine.

我在Juno 3.8.2上使用GGTS 3.5.1。

I'm using GGTS 3.5.1 on Juno 3.8.2.

我的GGTS.ini(eclipse.ini)文件有:

My GGTS.ini (eclipse.ini) file has:

-vm
C:/Program Files/Java/jdk1.7.0_15/jre/bin/javaw.exe


$

推荐答案

由于@Marvin在上述评论中提到,Eclipse Juno与JDK 1.8不兼容。这可能是Eclipse将JDK 1.8解释为1.4的错误,但我怀疑您可以通过从已安装的JRE列表中删除1.8或更新到最新版本的Eclipse / Grails Tool Suite(Juno相当老,很快,3个完整版本落后,最新版本的GGTS基于Eclipse 4.4)。

As @Marvin mentioned in the comments above, Eclipse Juno is not compatible with JDK 1.8. It might be a bug that Eclipse interprets JDK 1.8 as 1.4, but I suspect you can work around it by either removing the 1.8 from your list of installed JREs or updating to a recent version of Eclipse/Grails Tool Suite (Juno is quite old, very soon 3 full releases behind and the latest version of GGTS is based on Eclipse 4.4).

这篇关于为什么Eclipse引用1.4 JRE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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