Eclipse错误:未绑定的类路径容器 [英] Eclipse error: Unbound classpath container
本文介绍了Eclipse错误:未绑定的类路径容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-
在构建路径错误解决之前,无法构建项目。
-
未绑定的类路径容器:项目'method_test'中的'JRE系统库[OSGi / Minimum-1.2]'
我认为如果我弄清楚第二个错误,第一个错误将会消失。但是,我在10.5.8 Mac上运行eclipse Juno,我无法从Oracle网站安装必要的JRE,因为它们不兼容Mac。
解决方案
- 右键单击项目
- 打开属性
- 选择Java构建路径
- 在库选项卡下选择JRE系统库。
- 点击编辑。
- 点击备用JRE。
- 如果出现备用JRE,请选择并单击完成。
- 如果不存在,则单击安装的JRE打开弹出窗口。
- 点击添加。
- 选择标准虚拟机,然后单击下一步。
- 选择JRE Home,导航到JDK根目录并选择该选项。
- 点击完成。
- 选择已安装的JRE中的
以下是 JDK Mac安装
I recieved two error messages after I made my project:
The project cannot be built until build path errors are resolved.
Unbound classpath container: 'JRE System Library [OSGi/Minimum-1.2]' in project 'method_test'
I think that if I figure out the second error, the first one will go away. However, I am running eclipse Juno on a 10.5.8 Mac, and I cannot install the necessary JRE from the Oracle website, as they do not it compatible for Mac.
解决方案
- Right click on the project
- Open Properties
- Select Java Build Path
- Select the JRE System Library under the Libraries tab .
- Click on Edit .
- Click on Alternate JRE .
- If Alternate JRE present , then Select it and hit Finish .
- If not present , then click on Installed JREs which opens a pop up.
- Click on Add .
- Select Standard VM and Click Next.
- Select the JRE Home , Navigate to JDK root and select that .
- Click on Finish .
- Select that in installed JREs.
Here is the link to JDK Mac Install
这篇关于Eclipse错误:未绑定的类路径容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文