File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot export PDF File (Jasper reprting)

 
Kasun Wixkramanayake
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use itext-2.1.7.jar
 
Rob Spoor
Sheriff
Pie
Posts: 20381
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java in General since this isn't a GUI related problem.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic