Hi:

 I have been using IText to create PDF documents. It worked great with Java 1.4.x. However, when I switched to Java 1.5.0_06, I got the following error:

 Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: sun/awt/font/NativeFontWrapperException in “fm.insertDirectory(sun.awt.font.NativeFontWrapper.getFontPath(true));”

 Here’s my code:

DefaultFontMapper fm = new DefaultFontMapper();

fm.insertDirectory(sun.awt.font.NativeFontWrapper.getFontPath(true));

font = new com.lowagie.text.Font[styl.length];

 Any ideas?

 Thanks for the help!

 

Reply via email to