OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Generating font metrics requires Jakarta Commons Logging


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
bobs@sagehill.net


----- Original Message ----- 
From: "T.G. Mutato" <throw6617@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]