java.lang.NoSuchMethodError:java.lang.NoSuchMethodError [英] java.lang.NoSuchMethodError: java.lang.NoSuchMethodError

查看:214
本文介绍了java.lang.NoSuchMethodError:java.lang.NoSuchMethodError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过eclipse运行Tomcat 7
报告的错误是:

Running Tomcat 7 through eclipse The error reported is:

javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;
at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(JDTCompiler.java:341)

我已经尝试了jasper-jdt-6.0.13.jar和tomcat-6.0.16-jasper-jdt.jar,两者都报告了同样的错误。在某种程度上,我不应该感到惊讶,因为我跑了:

I have tried both jasper-jdt-6.0.13.jar and tomcat-6.0.16-jasper-jdt.jar and both report the same error. In a way I shouldn't be surprised because I ran:

jar tf tomcat-6.0.16-jasper-jdt.jar

并且它没有类org.eclipse.jdt.internal.compiler.CompilationResult 。但是这个网站 http://www.java2s.com/Code/Jar/STUVWXYZ/ Downloadtomcat6016jasperjdtjar.htm 说它确实!!

有人能告诉我正确的jar文件是什么以及从哪里获取它?
这似乎是一个反复出现的主题。 http://www.findjar.com 列出了一些声称拥有此课程的罐子 - 但却没有。

and it doesn't have the class org.eclipse.jdt.internal.compiler.CompilationResult in it. But this site http://www.java2s.com/Code/Jar/STUVWXYZ/Downloadtomcat6016jasperjdtjar.htm says it does!!
Can someone tell me what the correct jar file is and where to get it from? It seems to be a recurring theme. http://www.findjar.com lists a number of jars that purport to have this class - but do not.

好的,在jasper-compiler-jdt-5.5.23.jar中找到它

OK, Found it in jasper-compiler-jdt-5.5.23.jar

推荐答案

在jasper-compiler-jdt-5.5.23.jar中找到它

Found it in jasper-compiler-jdt-5.5.23.jar

这篇关于java.lang.NoSuchMethodError:java.lang.NoSuchMethodError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆