eclipse eclipse中未绑定的类路径容器错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6798281/
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 class path container error in eclipse?
提问by kiran
I tried to import my project into ecclipse, but im get following error Description
Unbound classpath container: 'JRE System Library [jre1.5.0_16]' in project 'myproject',
How i can resolve this error
我试图将我的项目导入 ecclipse,但我收到以下错误说明
未绑定类路径容器:项目“myproject”中的“JRE 系统库 [jre1.5.0_16]”,我如何解决此错误
回答by Vineet Reynolds
An unbounded classpath container for an Eclipse project implies that the JRE associated with the project is not available in the list of JREs available in the workspace. You will need to modify your Java build path (accessible via Project Preferences), to use a JRE definition that is valid in your workspace.
Eclipse 项目的无界类路径容器意味着与该项目关联的 JRE 在工作区中可用的 JRE 列表中不可用。您需要修改 Java 构建路径(可通过项目首选项访问),以使用在您的工作区中有效的 JRE 定义。
You can choose your workspace default JRE or an alternate JRE, or even a JRE that matches an execution environment (like Java 5 or Java 6).
您可以选择您的工作区默认 JRE 或备用 JRE,甚至是与执行环境(如 Java 5 或 Java 6)匹配的 JRE。
Edit: As an alternative, you can add the missing JRE to your workspace. http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_new_jre.htm
编辑:作为替代方案,您可以将缺少的 JRE 添加到您的工作区。 http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_new_jre.htm