java的The project cannot be built until build path errors are resolved错误解决办法
在myeclipsc里的problems 里现在的error 信息为:
Description Resource Path Location Type
The project cannot be built until build path errors are resolved ssh Unknown Java Problem
在运行的console里显示
The project cannot be built until build path errors are resolved
Project 'newsRelease' is missing required library: 'E:\tomcat\apache-tomcat-5.5.27\lib\annotations-api.jar'
Project 'newsRelease' is missing required library: 'E:\tomcat\apache-tomcat-5.5.27\lib\el-api.jar'
Project 'newsRelease' is missing required library: 'E:\tomcat\apache-tomcat-5.5.27\lib\jasper.jar'
Project 'newsRelease' is missing required library: 'E:\tomcat\apache-tomcat-5.5.27\lib\jsp-api.jar'
Project 'newsRelease' is missing required library: 'E:\tomcat\apache-tomcat-5.5.27\lib\servlet-api.jar'
这个工程,作者在写的时候呢,在build path中添加了他的机器里面的E:\tomcat\apache-tomcat-5.5.27\lib下的一些包,这些细节会被工程记下来。当你导入这个项目的时候呢,会自动到你的E:\tomcat\apache-tomcat-5.5.27\lib下面找这些jar包,很显然,你没有这个路径。
然后呢,解决办法:
右键工程,选择build path->configure build path,弹出的窗口里面选择libraries选项卡,你应该会看到一些标有红叉叉的jar包(可能做成了一个用户Lib的话,把那些加号都点开),把这些删掉,然后点击add external jars,选择你的tomcat下的lib下的那几个对应的jar(annotations-api.jar,el-api.jar,jasper.jar,jsp-api.jar,servlet-api.jar)包即可,如果没有tomcat的话,下一个吧。:)