警告 - 构建路径指定执行环境J2SE-1.4 [英] Warning - Build path specifies execution environment J2SE-1.4

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

问题描述

我在Eclipse Helios中创建了一个Maven项目。它工作正常一天,但是这个警告显示:


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


由于此消息,项目停止编译和调试。有没有人可以解决这个问题?

解决方案

在您的项目中的Eclipse中:


  1. 右键单击您的项目

  2. 单击属性

  3. Java构建路径:图书馆删除JRE系统库[J2SE 1.4]

  4. 单击添加库 - > JRE系统库

  5. 选择新的执行环境或Workspace默认JRE


I create a Maven project in Eclipse Helios. It works fine for a day, but then this warning shows up:

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

Since this message, the project stopped compiling and debugging. Does anyone have solution for this problem?

解决方案

In Eclipse from your project:

  1. Right-click on your project
  2. Click Properties
  3. Java build path: Libraries; Remove the "JRE System Library[J2SE 1.4]"
  4. Click Add Library -> JRE System Library
  5. Select the new "Execution Environment" or Workspace default JRE

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

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