未绑定的类路径容器:项目中的“JRE 系统库 [Java SE 6 [1.6.0_65-b14-462]]”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22921800/
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
Unbound classpath container: 'JRE System Library [Java SE 6 [1.6.0_65-b14-462]]' in project
提问by Ehsan Sajjad
I am trying to run an existing Java project in Eclipse, and I am very new to Java and Eclipse, so I am unable to figure out why this error is coming in the project.
我试图在Eclipse 中运行一个现有的 Java 项目,我对 Java 和 Eclipse 非常陌生,所以我无法弄清楚为什么这个错误会出现在项目中。
Here is the complete error:
这是完整的错误:
Description Resource Path Location Type Unbound classpath container: 'JRE System Library [Java SE 6 [1.6.0_65-b14-462]]' in project 'INFO 2413 Server' INFO 2413 Server Build path Build Path Problem
说明资源路径位置类型未绑定类路径容器:项目“INFO 2413 Server”中的“JRE System Library [Java SE 6 [1.6.0_65-b14-462]]” INFO 2413 Server Build path Build Path Problem
回答by PotatoPhil
You could just go into menu File-> Import-> Existing projectinto library-> and select the path to your project.
您可以进入菜单File-> Import-> Existing projectinto library-> 并选择项目的路径。
回答by Jon D
- Make sure you have JDK 1.6 installed on your machine and set up in Eclipse. Go to menu Window-> Preferences-> Java-> Installed JREs. If you don't see it, use the "Add" button to point it to your installation directory.
- **Right click the project -> Properties-> Java Build Path.
- You should see something like "JRE System Library [Java SE 6 [1.6.0_65-b14-462]] (unbound)". Select this, click edit, and set it to an installed JRE 1.6. Either "Alternate JRE" or "Workspace Default" should work depending on how your Eclipse is configured. You can also try removing the library and re-adding it.
- 确保您的机器上安装了 JDK 1.6 并在 Eclipse 中进行了设置。转到菜单Window-> Preferences-> Java-> Installed JREs。如果您没有看到它,请使用“添加”按钮将其指向您的安装目录。
- **右键单击项目 ->属性-> Java 构建路径。
- 您应该会看到类似“JRE 系统库 [Java SE 6 [1.6.0_65-b14-462]](未绑定)”的内容。选择此项,单击编辑,并将其设置为已安装的 JRE 1.6。“Alternate JRE”或“Workspace Default”应该可以工作,具体取决于您的 Eclipse 的配置方式。您也可以尝试删除库并重新添加它。