Eclipse中未绑定的类路径容器 [英] Unbound classpath container in Eclipse

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

问题描述

我已经使用Subversive for Eclipse检查了一个项目,我收到以下错误:




  • 项目无法在构建之前构建路径错误已解决

  • 未绑定的类路径容器:'JRE System Library [jdk1.5.0_08]'



我假设第一个错误将在第二个错误一旦解决。我想我需要安装JDK 1.5.0_08并将其设置为项目的jre系统库,但是我找不到任何地方可以下载它 - 最接近的是JDK 1.5.0_22。



如果有人可以提供一个替代解决方案(或下载jdk1.5.0_08的链接,我想),我会很感激。

解决方案

鉴于常见问题,共享项目文件似乎有优势甚至推荐Java项目实践(个人而言,我不会这样做)。



也许以下一些工作适合您:


  1. 编辑项目的属性(右键单击项目,属性,Java构建路径,库,删除和添加库。

  2. 导入没有项目文件的项目文件

  3. http://java.sun.com/javase/downloads/index_jdk5.jsp ,看看是否可以修复路径


I have checked out a project using Subversive for Eclipse and I am getting the following errors:

  • The project cannot be built until build path errors are resolved
  • Unbound classpath container: 'JRE System Library[jdk1.5.0_08]'

I'm assuming the first error will be resolved as soon as the second one is. I think I need to install JDK 1.5.0_08 and set it as a jre system library for the project but I can't find anywhere to download it - the closest I can get is JDK 1.5.0_22.

If anyone could provide an alternative solution (or a download link for jdk1.5.0_08 I suppose) I would appreciate it.

解决方案

Given the FAQ, sharing a project file seems have to have advantages and is even recommended practice for Java projects (personally, I would not do that).

Maybe some of the following work for you:

  1. Edit the project's properties (right-click project, Properties, Java Build Path, Libraries, Remove and Add Library.
  2. Import the project's files without the "project file"
  3. Install JDK1.5 from http://java.sun.com/javase/downloads/index_jdk5.jsp and see whether you can fix paths

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

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