eclipse解决The project cannot be built until build path errors are resolved错误

从svn导出的项目代码编译失败,打开problems视图,出现The project cannot be built until build path errors are resolved的错误信息,然后下面提示Unbound classpath container: 'JRE System Library [JavaSE-1.7]' in project 'xxxx',应该就是JRE版本不一致导致的。

解决办法:

项目右键属性--->Java Build Path--->Libraries

选中JRE System Library [JavaS3E1.7] ,然后Remove掉。

eclipse解决The project cannot be built until build path errors are resolved错误_第1张图片

删掉后再重新添加JRE

eclipse解决The project cannot be built until build path errors are resolved错误_第2张图片

点击Next,可以选择工作空间默认的jre,也可以重新添加外部的,如果选择默认的点击完成即可,如果添加外部的,点击“Installed JREs...”按钮,重新选择外部JRE路径地址即可。

eclipse解决The project cannot be built until build path errors are resolved错误_第3张图片

完成后可看到如下图所示,JRE没有在报错了,点击OK即可。

eclipse解决The project cannot be built until build path errors are resolved错误_第4张图片

 

你可能感兴趣的:(JAVA)