Jump to content
We've recently updated our Privacy Statement, available here ×

NoClassDefFoundError and ClassNotFoundException are raised at runtime.


kazuhiko.mitsuoka

Recommended Posts

Eclipse4.16
JDK8
JasperReport 6.20.0
In the above environment, I have created a JasperReport class in an existing project.
The application will be J2EE.
I have placed the library in the lib folder and created it so that the library is also included in the ear file through the classpath.
Ant builds successfully, but I get NoClassDefFoundError and ClassNotFoundException at runtime.

    java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.JRDataSource
    ・・・・
    Caused by: 
    java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JRDataSource

The library placed in lib is as follows

    jasperreports-6.20.0.jar
    jasperreports-castor-6.20.0.jar
    jasperreports-chart-customizers-6.20.0.jar
    jasperreports-chart-themes-6.20.0.jar
    jasperreports-fonts-6.20.0.jar
    jasperreports-functions-6.20.0.jar
    jasperreports-metadata-6.20.0.jar


I don't know what is causing this.
Please let me know how to deal with it.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...