Hi SriKrishnan,

Just to add, I forgot to mention, you're also using the the wrong
character to denote folders "/" is a Unix/Linux folder separator, in
windows command line you have to use "\". So your final command should
be:

java -cp 
"C:\fop-1.0\build\fop.jar";"C:\fop-1.0\lib\avalon-framework-4.2.0.jar";"C:\fop-1.0\lib\commons-logging-1.0.4.jar";"C:\fop-1.0\lib\commons-io-1.3.1.jar"
org.apache.fop.fonts.apps.TTFReader -d "C:\OpenTypeFonts\Goudy.otf"
Goudy.xml

That is of course presuming everything is in the correct directories
as specified.

Thanks

Mehdi

On 4 November 2010 12:29, Chen Yang <cy...@hrsg.ca> wrote:
> Hi Srikrishnan,
>
>
>
> Here is the command I used for Chinese fonts in Linux
>
>
>
> # java –cp
> /root/Desktop/fop/build/fop.jar:/root/Desktop/fop/lib/avalon-framework-4.2.0.jar:/root/Desktop/fop/lib/commons-logging-1.0.4.jar:/root/Desktop/fop/lib/commons-io-1.3.1.jar:/root/Desktop/fop/lib/xmlgraphics-commons-1.4.jar
> org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/simhei/simhei.ttf
> /usr/share/fonts/simhei/simhei.xml
>
>
>
>
>
> Chen
>
>
>
> From: SriKrishnan [mailto:srikrish...@techset.co.uk]
> Sent: November-04-10 6:11 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: font configuration in fop
>
>
>
> Hi All,
>
>
>
> I want to configure “Goudy” font in my fop. I tried something like below as
> per mentioned in the Documentation:
>
>
>
> D:\xslfo>java -cp
> "C:/fop-1.0/build/fop.jar";"C:/fop-1.0/lib/avalon-framework-4.2.0.jar";"C:/fop-1.0/lib/commans-logging-1.0.4.jar";"C:/fop-1.0/lib/commons-io-1.3.1.jar"
> org.apache.fop.fonts.apps.TTFReader -d "C:/ OpenTypeFonts/Goudy.otf"
> Goudy.xml
>
>
>
> But I encountered some error message as follows:
>
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory
>
>         at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:119)
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.logging.LogFactory
>
>         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)
>
>         ... 1 more
>
>
>
> Can anybody helpme to understand what about this? And how to solve this?
>
>
>
> Thanks in Advance,
>
> Srikrishnan

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to