Recently we integrated JasperReports to our enterprise application. Some of our users get java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
at client side which is a Swing application. The jnlp
file contains jasperreports.jar
and no import of this class occurs in our code. Why does JasperReports try to load this class ?
The spring-core.jar
is an optional jasper report dependency
Why is it trying to load it?,
I would check the jrxml files and the jasperreports_extension.properties
.
I recreate the error on my pc and relaize that jasperreports-chart-themes.jar
uses spring-core.jar
and jasperreports-functions.jar
uses jodatime api. so remove these jar if you really do not need otherwise add the depended jars.
I got the same issue with jasperreports-fonts-3.7.1
I'm using this jar with jasperreports-3.7.1 to display UTF8 character (using DejaVu Sans font)
The spring dependency is used in jasperreports_extension.properties of jasperreports-fonts-
I added the spring-core and spring-beans 2.5 to the classpath and the problem is solved
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.