0 Replies Latest reply: Apr 21, 2010 5:52 AM by 807567 RSS

    jasper report read problem

      I made a report with ireport designer and saved it the jrxml file to my project path. I m trying to create a simple report with pdf but I get error.
      Here is code
                jasperReport=JasperCompileManager.compileReport(filePath);//file path shows the file and there s no problem with this               
                jasperPrint=JasperFillManager.fillReport(jasperReport, jasperParameter,connection);
           }catch(JRException e)
      and this is the error

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
      +     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:146)+
      +     at ReportSample.main(ReportSample.java:68)+
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.digester.Digester
      +     at java.net.URLClassLoader$1.run(Unknown Source)+
      +     at java.security.AccessController.doPrivileged(Native Method)+
      +     at java.net.URLClassLoader.findClass(Unknown Source)+
      +     at java.lang.ClassLoader.loadClass(Unknown Source)+
      +     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)+
      +     at java.lang.ClassLoader.loadClass(Unknown Source)+
      +     ... 2 more+

      thank you for help