This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Cannot export PDF File (Jasper reprting) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Cannot export PDF File (Jasper reprting)" Watch "Cannot export PDF File (Jasper reprting)" New topic
Author

Cannot export PDF File (Jasper reprting)

Kasun Wixkramanayake
Ranch Hand

Joined: Feb 09, 2010
Posts: 74


I used these jar files to run above code
jasperreports-4.0.2.jar
commons-digester-1.7.jar
commons-collections-3.2jar (commons-collections.jar)
commons-logging-1.0.4.jar
commons-beanutils.jar
iText-5.1.1.jar )
but i get following run time errors.



Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException
at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:117)
at javaapplication14.Main.add(Main.java:48)
at javaapplication14.Main.main(Main.java:37)
Java Result: 1
Arun Chidam
Ranch Hand

Joined: May 08, 2006
Posts: 79
use itext-2.1.7.jar


SCJP 1.4, SCWCD 1.4
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Moving to Java in General since this isn't a GUI related problem.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: Cannot export PDF File (Jasper reprting)
 
Similar Threads
problem in developing jasper report in BEA workspace studio version 1.1 with weblogic server 10.0
NetBeans:JasperReport --> Exception
Jasper Report Issue
cannot pass to value to a jasper parameter
jasper report to PDF