Hi,
Actually, I have found that you don't need all of those jar file (although including them is not harmful). I can generate the metrics with this minimum set:

java -cp "../fop-0.93/build/fop.jar;\
../fop-0.93/lib/commons-logging-1.0.4.jar" \
../fop-0.93/lib/commons-io-1.1.jar;\
../fop-0.93/lib/serializer-2.7.0.jar"\
org.apache.fop.fonts.apps.TTFReader
-enc ansi \
/WINDOWS/FONTS/GARA.TTF  lib/garamond.xml

Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]


----- Original Message ----- From: "T.G. Mutato" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 17, 2007 2:14 PM
Subject: [docbook-apps] Generating font metrics requires Jakarta Commons Logging


On a Win32 system, I've found with FOP 0.93 that the "Generate a FOP
font metrics file" instructions for FOP 0.20.5 in "DocBook XSL: The
Complete Guide" don't work "as is":

java -cp "../fop-0.20.5/build/fop.jar;\
../fop-0.20.5/lib/xercesImpl.jar;../fop-0.20.5/lib/xalan.jar" \
org.apache.fop.fonts.apps.TTFReader \
-enc ansi \
/WINDOWS/FONTS/GARA.TTF  lib/garamond.xml

Even when updating the directory names this produces the error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

Adding the Commons Logging library, Commons IO library, and Serializer
library seems to resolve this. So updating the directory names and
version numbers and adding the new jar files gives us:

java -cp "../fop-0.93/build/fop.jar;\
../fop-0.93/lib/xercesImpl-2.7.1.jar;\
../fop-0.93/lib/xalan-2.7.0.jar;\
../fop-0.93/lib/commons-logging-1.0.4.jar" \
../fop-0.93/lib/commons-io-1.1.jar;
../fop-0.93/lib/serializer-2.7.0.jar
org.apache.fop.fonts.apps.TTFReader
-enc ansi \
/WINDOWS/FONTS/GARA.TTF  lib/garamond.xml

Just in case someone else finds this useful...

TGM

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to