This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 46


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: 19216

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


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cannot export PDF File (Jasper reprting)
 
Similar Threads
jasper report to PDF
Jasper Report Issue
cannot pass to value to a jasper parameter
problem in developing jasper report in BEA workspace studio version 1.1 with weblogic server 10.0
NetBeans:JasperReport --> Exception