Eclipse错误:未绑定的类路径容器 [英] Eclipse error: Unbound classpath container

查看:752
本文介绍了Eclipse错误:未绑定的类路径容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 在构建路径错误解决之前,无法构建项目。


  2. 未绑定的类路径容器:项目'method_test'中的'JRE系统库[OSGi / Minimum-1.2]'


我认为如果我弄清楚第二个错误,第一个错误将会消失。但是,我在10.5.8 Mac上运行eclipse Juno,我无法从Oracle网站安装必要的JRE,因为它们不兼容Mac。

解决方案


  1. 右键单击项目

  2. 打开属性

  3. 选择Java构建路径

  4. 在库选项卡下选择JRE系统库。

  5. 点击编辑。

  6. 点击备用JRE。

  7. 如果出现备用JRE,请选择并单击完成。

  8. 如果不存在,则单击安装的JRE打开弹出窗口。

  9. 点击添加。

  10. 选择标准虚拟机,然后单击下一步。

  11. 选择JRE Home,导航到JDK根目录并选择该选项。

  12. 点击完成。

  13. 选择已安装的JRE中的

以下是 JDK Mac安装


I recieved two error messages after I made my project:

  1. The project cannot be built until build path errors are resolved.

  2. 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.

解决方案

  1. Right click on the project
  2. Open Properties
  3. Select Java Build Path
  4. Select the JRE System Library under the Libraries tab .
  5. Click on Edit .
  6. Click on Alternate JRE .
  7. If Alternate JRE present , then Select it and hit Finish .
  8. If not present , then click on Installed JREs which opens a pop up.
  9. Click on Add .
  10. Select Standard VM and Click Next.
  11. Select the JRE Home , Navigate to JDK root and select that .
  12. Click on Finish .
  13. Select that in installed JREs.

Here is the link to JDK Mac Install

这篇关于Eclipse错误:未绑定的类路径容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆