构建路径指定的执行环境J2SE-1.4。错误在日食 [英] Build path specifies execution environment J2SE-1.4. error in eclipse

查看:1659
本文介绍了构建路径指定的执行环境J2SE-1.4。错误在日食的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建Eclipse code,我有这样的构建路径指定...错误。

构建路径指定的执行环境J2SE-1.4。没有安装在工作区的JRE是与此环境严格兼容。

谷歌搜索找到这个帖子: Java构建路径问题来添加J2SE-1.4执行环境。

和检查Java SE 7的安装是否正确。

不过,我仍然得到错误。可能是什么问题?

我有 Java的版本在我的命令行信息。

  Java版本1.7.0_07
的Java(TM)SE运行时环境(建立1.7.0_07-B10)
Java的热点(TM)64位服务器VM(23.3建造-B01,混合模式)


解决方案

您可以尝试去项目|属性,然后选择的Java构建路径
选择当前 JRE系统库,然后选择删除。

选择添加库,并根据 JRE系统库类别,选择您的系统库;
尽量选择工作空间缺省JRE

In building eclipse code, I have this "Build path specifies ..." error.

Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible with this environment.

Googling to find this post : java build path problems to add J2SE-1.4 execution environments.

And checked Java SE 7 is installed correctly.

However, I still get the error. What might be wrong?

I have this information with java -version in my command line.

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

解决方案

You can try to go to Project|Properties, then Choose the Java Build Path, chose the current JRE System Library, and choose Remove.

Select Add Library, and under the JRE System Library category, select your system library; try to choose the Workspace default JRE

这篇关于构建路径指定的执行环境J2SE-1.4。错误在日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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