[英]Project cannot be built until build path errors are resolved eclipse
I am trying to build a Java project. 我正在尝试构建一个Java项目。 This used to be a breeze for me but ever since I changed my workspace to another location to store my new projects, I've been running into trouble.
这曾经是一件轻而易举的事情,但自从我将工作空间改为另一个位置来存储我的新项目后,我一直遇到麻烦。 I get these two errors.
我得到了这两个错误。
Description Resource Path Location Type
The project cannot be built until build path errors are resolved InterviewPractice Unknown Java Problem
Unbound classpath container: 'JRE System Library [JavaSE-1.7]' in project 'InterviewPractice' InterviewPractice Build path Build Path Problem
I've looked up fixes online but none of them seem to be working for me. 我在线查找了修复程序,但似乎没有一个对我有用。
While building the project, selecting the JRE selection. 在构建项目时,选择JRE选择。 I'm also not sure what to choose.
我也不确定该选择什么。 I think default it was set to
OSGi/minimum 1.0
but I'm honestly not sure what that does. 我认为默认它设置为
OSGi/minimum 1.0
但我老实说不确定它是做什么的。 I simply want to build simple programs for interview practice. 我只是想为面试练习建立简单的程序。 So
JavaSE-1.7
? 那么
JavaSE-1.7
?
when I click JRE system library a popup that says An error has occurred. 当我点击JRE系统库时,弹出窗口显示已发生错误。 See error log for more details.
有关详细信息,请参阅错误日志 java.lang.NullPointerException
显示java.lang.NullPointerException
I think it is about your jre version. 我认为这是关于你的jre版本。 Did you try jre6 ?
你试过jre6吗?
Package Explorer >> Right Click >> Build Patch >> Configure Build Path >> Libraries >> 包浏览器>>右键单击>>构建补丁>>配置构建路径>>库>>
Delete Your JRE . 删除您的JRE。
Then Add Library >> JRE System Library >> Environments >> Select JRE6 >> Finish 然后添加库>> JRE系统库>>环境>>选择JRE6 >>完成
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.