This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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: 20048
    
  30

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot export PDF File (Jasper reprting)
 
It's not a secret anymore!