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

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

问题描述

我在 Eclipse Helios 中创建了一个 Maven 项目.它可以正常工作一天,但随后出现此警告:

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

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

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?

推荐答案

在您的项目中的 Eclipse:

In Eclipse from your project:

  1. 右键单击您的项目
  2. 点击属性
  3. Java 构建路径:库;删除JRE 系统库[J2SE 1.4]"
  4. 点击添加库 -> JRE 系统库
  5. 选择新的执行环境"或工作区默认 JRE

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

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