嗨,我尝试构建build.xml文件时收到错误taskdef A class needed by class org.apache.jasper.JspC cannot be found: Could not initialize class org.apache.jasper.JspC。谁能给我一个解决方案。提前致谢 最佳答案 我将以下内容添加到了我的ant类路径中:/usr/local/apache-tomcat-7/bin/tomcat-juli.jar