Eclipse IDE - 错误:构建路径指定执行环境 Java SE 1.7

新手上路,请多包涵

在 Eclipse 中,我收到一个错误:

构建路径指定执行环境Java SE 1.7。

工作区中没有安装与此环境严格兼容的 JRE。

原文由 Srinivas Nani 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 522
1 个回答

尝试这个

 In Eclipse,
your project
-> properties
-> java build path : Libraries
Remove the "JRE System Library[J2SE 1.4]"
-> click "Add Library" button -> JRE System Library
-> select the new "Executin Environment" or Workspace default JRE

原文由 kirti 发布,翻译遵循 CC BY-SA 3.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题