satyadoorva Posted November 8, 2011 Share Posted November 8, 2011 Hi, I am getting java.lang.NoSuchFieldError: APPDEFAULT error when trying to export a jasper report to PDF . My settings are: [root@bounce ~]# uname -aLinux MYHOST 2.6.18-194.el5PAE #1 SMP Tue Mar 16 22:00:21 EDT 2010 i686 i686 i386 GNU/LinuxLibs: jasperreports-4.1.3.jarjasperreports-fonts-4.1.3.jar itext-2.0.6.jar [root@bounce lib]# java -versionjava version "1.7.0"Java SE Runtime Environment (build 1.7.0-b147)Java HotSpot Server VM (build 21.0-b17, mixed mode) 11:20:36,733 INFO [AbstractServer] Starting: JBossAS [6.1.0.Final "Neo"] The code breaks at exporter.exportReport(); Any help will be greatly appreciated. Thanks Satya Code: Post Edited by satyadoorva at 11/08/2011 06:51Post Edited by satyadoorva at 11/08/2011 06:56 Link to comment Share on other sites More sharing options...
satyadoorva Posted November 10, 2011 Author Share Posted November 10, 2011 Teodor , would yoou mind taking a look at my problem as well :) Link to comment Share on other sites More sharing options...
satyadoorva Posted November 11, 2011 Author Share Posted November 11, 2011 seems no one likes my post :( Link to comment Share on other sites More sharing options...
lucianc Posted November 14, 2011 Share Posted November 14, 2011 Make sure you use iText 1.2.7 on your application's classpath.Regards,Lucian Link to comment Share on other sites More sharing options...
satyadoorva Posted November 14, 2011 Author Share Posted November 14, 2011 Hi Lucian, I am unable to find itext 1.2.7 on google. Can you please point to the resource from where I can download. Thanks Link to comment Share on other sites More sharing options...
lucianc Posted November 14, 2011 Share Posted November 14, 2011 My bad, it's 2.1.7.Download the JasperReports distribution package and you'll find it in the lib folder. Link to comment Share on other sites More sharing options...
satyadoorva Posted November 14, 2011 Author Share Posted November 14, 2011 Thanks a lot Lucian, it worked like a charm !! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now