简体   繁体   English

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

[英]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.

相关问题 Eclipse 中的错误:“在解决构建路径错误之前无法构建项目” - Error in Eclipse: “The project cannot be built until build path errors are resolved” Spring引导在解决构建路径错误之前,无法构建项目 - Spring boot The project cannot be built until build path errors are resolved 在解决构建路径错误之前无法构建项目(仍然) - The project cannot be built until build path errors are resolved (still) “在解决构建路径错误之前,无法构建项目” - “The project cannot be built until build path errors are resolved” Eclipse错误无法解析为一种类型 - Eclipse errors cannot be resolved to a type Eclipse Oxygen - 该项目未构建,因为其构建路径不完整 - Eclipse Oxygen - The project was not built since its build path is incomplete 项目不在Eclipse构建路径中 - Project not in eclipse build path arraylist给出“无法解析”和“无法解析为类型”错误(日食) - arraylist giving “cannot be resolved” and “cannot be resolved to a type” errors (eclipse) Maven clean + build 导致 Eclipse 中的项目显示错误,直到 Eclipse 中的 clean - Maven clean + build causes project in Eclipse to show errors until clean in Eclipse Eclipse Java是否在注释中发现“无法解决”错误? - Eclipse Java is finding “cannot be resolved” errors in comments?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM