Java 工作空间中没有安装与此环境严格兼容的 JRE

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23135863/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 20:59:23  来源:igfitidea点击:

No JREs installed in the work space that are strictly compatible with this environment

javaeclipse

提问by user3539822

The following warning i am getting after running my java project in eclipse.

在 Eclipse 中运行我的 Java 项目后,我收到以下警告。

**Description Resource Path Location Type Build path specifies execution environment CDC-1.1/Foundation-1.1. There are no JREs installed in the work space that are strictly compatible with this environment**. 

回答by greg-449

Open the Properties for the project and select Java Build Path, look at the Librariestab. Select the JRE System Libraryentry and click the Edit...button. Choose a more sensible Execution environment or JRE from the list in the Edit Library dialog.

打开项目的属性并选择Java Build Path,查看Libraries选项卡。选择JRE System Library条目并单击Edit...按钮。从“编辑库”对话框的列表中选择更合理的执行环境或 JRE。