Jump to content
We've recently updated our Privacy Statement, available here ×

Exception :: com/lowagie/text/pdf/FontMapper


patrick24

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 6 months later...

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

  • 2 years later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...