Hello, please make sure, that xmlgraphics-commons-1.3.1.jar is included, too. In Your case a command should be like this:
java -cp "build/fop.jar;lib/serializer-2.7.0.jar;lib/commons-logging-1.0.4.jar;lib/commons-io-1.3.1.jar;lib/xmlgraphics-commons-1.3.1.jar" org.apache.fop.fonts.apps.TTFReader C:\windows\fonts\Barcode128C.TTf Barcode128C.xml On Mon, Jan 4, 2010 at 11:53 PM, Magdikova <[email protected]> wrote: > > I have the same problem, > > If I run the following command: > java -cp > > "build/fop.jar;lib/serializer-2.7.0.jar;lib/commons-logging-1.0.4.jar;lib/commons-io-1.3.1.jar" > org.apache.fop.fonts.apps.TTFReader C:\windows\fonts\Barcode128C.TTf > Barcode128C.xml > > I get the following error message: > ****************************** > TTF Reader for Apache FOP 0.95 > > Parsing font... > Reading C:\windows\fonts\Barcode128C.TTf... > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/xmlgraphic > s/fonts/Glyphs > at > org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:444 > ) > at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:493) > at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209) > at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164) > Caused by: java.lang.ClassNotFoundException: > org.apache.xmlgraphics.fonts.Glyphs > > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > ... 4 more > > ************************************************** > > Please help me, thanks in advance. > > > Erwan de FERRIERES wrote: > > > > Hi all, > > > > I'm trying to generate font metrics in order to import them in a > > project. Generating start well, but then I've got some errors. I'm > > running debian and javai version is 1.6.0_07 > > > > Here is the line I type to launch the metric generation : > > java -cp fop.jar:avalon-framework.jar:commons-logging.jar:commons-io.jar > > org.apache.fop.fonts.apps.TTFReader FreeMono.ttf -d DEBUG > > > > Then the debug tells me : > > > > TTF Reader for Apache FOP 0.95 > > > > Parsing font... > > Reading FreeMono.ttf... > > sfnt version: OpenType 1.0 > > Reading 18 dir tables > > dir tables: [loca, post, FFTM, glyf, fpgm, hmtx, GPOS, hhea, prep, GSUB, > > GDEF, cvt , gasp, name, OS/2, cmap, head, maxp] > > unit per em: 1000 > > Number of glyphs in font: 2709 > > hhea.Ascender: 900 900 > > hhea.Descender: -300 -300 > > Number of horizontal metrics: 4 > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/xmlgraphics/fonts/Glyphs > > at > org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:444) > > at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:493) > > at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209) > > at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164) > > Caused by: java.lang.ClassNotFoundException: > > org.apache.xmlgraphics.fonts.Glyphs > > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > ... 4 more > > > > I've been trying with other fonts, but got the same error. > > Thank you for your time and help ! > > > > > > -- > > - Erwan - > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > > -- > View this message in context: > http://old.nabble.com/Generating-metrics-tp20668871p27019948.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
