导入做好的java项目出现下面的错误The project cannot be built until build path errors are resolved我将一本J2EE书送的光盘里的一个项目拷到myeclipse,但是出现下面一些错误,The project cannot be built until build path
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 11:53:38
导入做好的java项目出现下面的错误The project cannot be built until build path errors are resolved我将一本J2EE书送的光盘里的一个项目拷到myeclipse,但是出现下面一些错误,The project cannot be built until build path
导入做好的java项目出现下面的错误The project cannot be built until build path errors are resolved
我将一本J2EE书送的光盘里的一个项目拷到myeclipse,但是出现下面一些错误,
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'
导入做好的java项目出现下面的错误The project cannot be built until build path errors are resolved我将一本J2EE书送的光盘里的一个项目拷到myeclipse,但是出现下面一些错误,The project cannot be built until build path
首先说明原因:
这个工程,作者在写的时候呢,在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的话,下一个吧.:)