patrick24 Posted September 30, 2008 Share Posted September 30, 2008 hi, i have fallowing problem, druing compilation i recive exception :Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:121) at DAO.SimpleHibernateExample.GenerateBeleg(SimpleHibernateExample.java:48) at DAO.SimpleHibernateExample.main(SimpleHibernateExample.java:64) please help Link to comment Share on other sites More sharing options...
patrick24 Posted September 30, 2008 Author Share Posted September 30, 2008 i have include poi and itext lib into my bulitpath but it don't help Link to comment Share on other sites More sharing options...
nicomart Posted April 7, 2009 Share Posted April 7, 2009 Are you sure the itext lib is the good one ? I had exactly the same problem, adding the latest iText jar (found here : http://www.lowagie.com/iText/download.html ) to my classpath solved it. Link to comment Share on other sites More sharing options...
rkozlowski Posted April 7, 2009 Share Posted April 7, 2009 Our folks use more than one poi jar. Take a look at the jars we use. You might need to add these. <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.0-final-20040126.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.5.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-contrib-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-scratchpad-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/itext-2.0.0.jar"/> Link to comment Share on other sites More sharing options...
edmundhaley Posted April 7, 2011 Share Posted April 7, 2011 I initially had trouble with this error as well. This is how I resolved the issue;I am presently using the JasperSoft iReport-Professional-4.0. I navigated to the following path; "C:\Program Files\Jaspersoft\iReport-Professional-4.0\ireport\modules\ext"Copied the delivered Jar Files; "iText-2.1.7.jar" and "iTextAsian.jar" to the "lib" Folder of my Web Application Project.Add both JARS to my Project Classpath.Recompiled the Project into a WAR File.And it worked successfully.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~NOTE: I initially atttemped adding the lastest iText JAR File to my project classpath, iText-5.0.6.jar, and I receieved the same error as before. So this is what made me think to look at the jars being utilized by JasperReports and iText. 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