jasper报道java。lang.ClassNotFoundException:org。乔达。时间可读部分
我正在使用Eclipse Luna和Jaspersoft Studio插件6.2.2为web应用程序编写开发人员报告。从Eclipse插件运行一个基本的空白报告没有问题,但是当我从java类加载这个jrxml时,我收到消息:
Servlet.service() for servlet [default] in context with path [/insurance] threw exception [Filter execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.joda.time.ReadablePartial
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1858)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709)
我在使用代码:
JasperDesign jasperDesign = JRXmlLoader.load(fileName);
这是什么错误
# 1 楼答案
听起来你错过了Joda-Time依赖关系。Joda的GitHub项目可用时间here
根据文档,要获取最新的Joda Time jar,您可以执行以下操作:
Maven
Gradle:
或者您可以从here手动下载最新的jar,并将其添加到您的类路径中