I had already tried that without success.
It gives a similar error (but with a different path)... It tries to find it
in the program files....


C:\Program Files\Altova\FOP>java -cp
"build\fop.jar;lib\avalon-framework-csv-200
20806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar"
org.apa
che.fop.fonts.apps.TTFReader C:\Projects\project1\Fonts\TTF\n015022t.tt
f test.xml
TTF Reader v1.1.1

Reading C:\Projects\project1\Fonts\TTF\n015022t.ttf...

Number of glyphs in font: 273
Creating xml font file...

Creating CID encoded metrics
Writing xml font file test.xml...

javax.xml.transform.TransformerException: java.io.FileNotFoundException:
file:\C
:\Program%20Files\Altova\FOP\test.xml (The filename, directory name, or
volume l
abel syntax is incorrect)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
entHandler(TransformerIdentityImpl.java:263)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:296)
        at
org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243)
        at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
Caused by: java.io.FileNotFoundException:
file:\C:\Program%20Files\Altova\FOP\te
st.xml (The filename, directory name, or volume label syntax is incorrect)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
entHandler(TransformerIdentityImpl.java:253)
        ... 3 more
---------
java.io.FileNotFoundException: file:\C:\Program%20Files\Altova\FOP\test.xml
(The
 filename, directory name, or volume label syntax is incorrect)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
entHandler(TransformerIdentityImpl.java:253)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:296)
        at
org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243)
        at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
This font contains no embedding license restrictions 

-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 26 de Junho de 2006 14:39
To: fop-users@xmlgraphics.apache.org
Subject: Re: java.lang.NoClassDefFoundError:
org/apache/fop/fonts/apps/TTFReader

That's a known issue with FOP 0.20.5. Please don't specify a path for the
output file and it should work. This is fixed in FOP 0.92beta.

On 26.06.2006 14:49:29 Andreia Oliveira wrote:
> Well,
>  
> After a number of tests I managed to overcome this problem by using a 
> full command line like:
>  
> C:\Program Files\Altova\FOP>java -cp
> "build\fop.jar;lib\avalon-framework-csv-200
> 20806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar"
> org.apa
> che.fop.fonts.apps.TTFReader 
> C:\Projects\project1\Fonts\TTF\n015022t.tt
> f C:\Projects\project1\Fonts\TTF\test.xml
> 
> My question now is due to the fact that when TTReader is writting to 
> the xml file it generates an error:java.io.FileNotFoundException
>  
> 
> TTF Reader v1.1.1
>  
> Reading C:\Projects\project1\Fonts\TTF\n015022t.ttf...
>  
> Number of glyphs in font: 273
> Creating xml font file...
>  
> Creating CID encoded metrics
> Writing xml font file C:\Projects\project1\Fonts\TTF\test.xml...
>  
> javax.xml.transform.TransformerException: java.io.FileNotFoundException:
> file:\C
> :\Projects\project1\Fonts\TTF\test.xml (The filename, directory name, 
> o r volume label syntax is incorrect)
>         at
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
> entHandler(TransformerIdentityImpl.java:263)
>         at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
> ormerIdentityImpl.java:296)
>         at
> org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243)
>         at 
> org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
> Caused by: java.io.FileNotFoundException: 
> file:\C:\Projects\project1\Fo nts\TTF\test.xml (The filename, 
> directory name, or volume label syntax is incorr
> ect)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(Unknown Source)
>         at java.io.FileOutputStream.<init>(Unknown Source)
>         at
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
> entHandler(TransformerIdentityImpl.java:253)
>         ... 3 more
> ---------
> java.io.FileNotFoundException: 
> file:\C:\Projects\project1\Fonts\TTF\tes
> t.xml (The filename, directory name, or volume label syntax is incorrect)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(Unknown Source)
>         at java.io.FileOutputStream.<init>(Unknown Source)
>         at
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
> entHandler(TransformerIdentityImpl.java:253)
>         at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
> ormerIdentityImpl.java:296)
>         at
> org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243)
>         at 
> org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
> This font contains no embedding license restrictions
>  
> I have also found a thred of a user with this same problem saying:
> i've finally found the problem. TTFReader does no work on Java 1.5. It 
> only work on java 1.4...
>  
>  
> If this is true... Can someone advise on how to perform this operation 
> and overcome this problem?
>  
> Thanks in advance.
>   _____
> 
> From: Andreia Oliveira [mailto:[EMAIL PROTECTED]
> Sent: segunda-feira, 26 de Junho de 2006 12:17
> To: fop-users@xmlgraphics.apache.org
> Subject: java.lang.NoClassDefFoundError: 
> org/apache/fop/fonts/apps/TTFReader
> 
> 
> Good morning.
> I am trying to use TTFReader to render a TTF font to a metric file. (I 
> am using Fop 0.20.5 and windows with JRE 1.5.0).
>  
> Have a command file named BuildNewsGothic_n015022t with the following:
>  
> @ECHO OFF
>  
> rem %~dp0 is the expanded pathname of the current script under NT set 
> LOCAL_FOP_HOME= if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
>  
> set LIBDIR=%LOCAL_FOP_HOME%lib
> set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar
> set
> LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-cvs-20020806
> .jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
> java -cp "%LOCALCLASSPATH%" org.apache.fop.fonts.apps.TTFReader 
> n015002t.ttf AA_NewsGothic.xml
>  
> When I run it I get the following error:
>  
> >BuildNewsGothic_n015022t
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/fop/fonts/
> apps/TTFReader
>  
> Can anyone help me?
> --------------------------------------
> Andreia Oliveira
> [EMAIL PROTECTED]
> ---------------------------------------
>  



Jeremias Maerki


---------------------------------------------------------------------
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