Jump to content
JasperReports Library 7.0 is now available ×

JasperReports 6.2.1 classes import from com.lowagie.*


chris_48
Go to solution Solved by hozawa,

Recommended Posts

I have been getting NoClassDefFoundError for com.lowagie.text.DocumentException:

Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException

at net.sf.jasperreports.engine.JasperExportManager.exportToPdfFile(JasperExportManager.java:151)

at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:504)

at ca.polarisfinancial.JasperTest.Main.main(Main.java:28)

I have itextpdf-5.5.9.jar on my classpath, but after digging into it a little bit I realized that some of the code distributed with 6.2.1 is pointing to the old package, for example:

JRPdfExporter.java in net.sf.jasperreports.engine.export has the following import defined:

import com.lowagie.text.DocumentException;

instead of

import com.itextpdf.text.DocumentException;

 
Is that intentional?   If so, what can I do to fix it?

 

Link to comment
Share on other sites

  • 8 years later...

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