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 ?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With