java - 警告 - 构建路径指定执行环境 J2SE-1.4

标签 java eclipse maven-2

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

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

自此消息以来,项目停止编译和调试。有人有解决这个问题的办法吗?

最佳答案

在您项目的 Eclipse 中:

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

关于java - 警告 - 构建路径指定执行环境 J2SE-1.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3138384/

相关文章:

java - 错误 : "Another unnamed CacheManager already exists in the same VM" Using Spring, Jersey 和 ehCache

java - 通过 telnet 连接时出现连接超时

SVN Checkout 后的 Android 构建路径

java - SWT 设置列高或插入新行

Linux Eclipse 4.x 弹出窗口因困惑而失去焦点

maven-2 - 在服务器部署目录安装war文件

java - 在 netbeans 7.1 中表示泰米尔语 unicode

java - JAXB 绑定(bind)文件 : validation error

java - 马文 : How do you deal with dependencies that are both direct and transitive?

java - ivy 对外部 JAR 的依赖