NoClassDefFoundError: com/lowagie/text/DocumentException
I am get following exception.
Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:183) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:305) at Report.main(Report.java:45)
Help me asap.
October 26, 2009 | Filed Under Jasper
Related Post
Comments
2 Responses to “NoClassDefFoundError: com/lowagie/text/DocumentException”
Leave a Reply
You are missing itext.jar in project’s build path. This jar can be downloaded from http://prdownloads.sourceforge.net/itext
Since you are getting NoClassDefFoundError and not ClassNotFoundException, it means the JAR is there in your classpath but classloader is not able to load this class. May be due to version mismatch. Like you are using JDK1.4 and trying to use a class complied in JDK1.5 or above version. Link might help:
http://www.jroller.com/sjivan/entry/difference_between_classnotfoundexception_and_noclassdeffounderror