Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports 1.3.4 -> problem (JREvaluator)


swaroopchand22

Recommended Posts

Hi,

 

I have just started integrating Jasper Reports into my application....I use maven as my build tool..I have included the dependency of 1.3.4 into my pom.xml file

 

I have written a simple test case which uses the deprecated Jasper Manager (just for my initial tests) to generate the pdf file...

 

JasperDesign jasperDesign = JasperManager.loadXmlDesign("e://reports//PortfolioSummaryReport.jrxml");

JasperReport jasperReport = JasperManager.compileReport(jasperDesign);

Map parameters = new HashMap();

parameters.put("reportTitle","Portfolio Summary");

 

JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,new JREmptyDataSource());

JRExporter exporter = new net.sf.jasperreports.engine.export.JRPdfExporter();

exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,outFile);

exporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperReport);

exporter.exportReport();

 

The bold lines seem to be the problem...I get the following problem while trying to execute the test case, but I can see this class very much within the jar file (jasperreports.1.3.4.jar)...I am clueless...please help

 

java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JREvaluator

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoader.java:318)

at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRClassLoader.java:249)

at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluator(JRAbstractJavaCompiler.java:76)

at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(JRAbstractCompiler.java:320)

at net.sf.jasperreports.engine.design.JRDefaultCompiler.loadEvaluator(JRDefaultCompiler.java:218)

at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:410)

at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:384)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)

at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...