I am trying to generate a jasper report via the Eclipse ide, however when I execute the following line of code:
jasperReport = JasperCompileManager.compileReport("reports/samplereport.jrxml");
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:146)
I have added the apache common digester jar as a project library but it does not seem to make a difference. NOTE: I am from a java novice (i.e. Ive a .NET background,) so I am very likely doing something really obvious!
you may be missing some jars. try to add these ones with any version.
jasperreports-.jar;
jasperreports-javaflow.jar;
commons-beanutils.jar;
commons-collections.jar;
commons-logging.jar;
commons-digester.jar
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