kazuhiko.mitsuoka Posted December 8, 2022 Share Posted December 8, 2022 Eclipse4.16JDK8JasperReport 6.20.0In 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.JRDataSourceThe 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.jarI don't know what is causing this.Please let me know how to deal with it. Link to comment Share on other sites More sharing options...
vchiem Posted December 13, 2022 Share Posted December 13, 2022 net.sf.jasperreports.engine.JRDataSource is inside jasperreports-6.20.0.jar so it is not picking up the jar. Not sure what lib folder you are referring to but maybe it is not the correct lib folder. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now