2011/10/23 Simon Large <simon.tortoisesvn_at_gmail.com>:
> Hi Stefan,
>
> I can no longer build the docs without disabling the build of font
> metrics. I think I have set up my config.bat correctly
>
> set LOCAL_FOP_HOME=%~dp0\..\..\..\..\DocTools\fop\
> set LIBDIR=%LOCAL_FOP_HOME%lib
> set CMD="java"
> set FONT_DIR=C:\Windows\Fonts
>
> but I just get a pile of errors which look like this:
>
> [exec] Parsing font...
> [exec] Reading C:\Windows\Fonts\arial.ttf...
> [exec] Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/xmlgraphics/fonts/Glyphs
> [exec] at
> org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:444)
> [exec] at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:493)
>
> [exec] at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209)
> [exec] at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164)
> [exec] Caused by: java.lang.ClassNotFoundException:
> org.apache.xmlgraphics.fonts.Glyphs
> [exec] at java.net.URLClassLoader$1.run(Unknown Source)
> [exec] at java.security.AccessController.doPrivileged(Native Method)
> [exec] at java.net.URLClassLoader.findClass(Unknown Source)
> [exec] at java.lang.ClassLoader.loadClass(Unknown Source)
> [exec] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> [exec] at java.lang.ClassLoader.loadClass(Unknown Source)
> [exec] ... 4 more
> [exec] TTF Reader for Apache FOP 0.95beta
"0.95beta"?
Looking at the bat file,
http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-0_95beta/fop.bat?view=markup
It will ignore your LOCAL_FOP_HOME and LIBDIR and will calculate them.
(The calculation breaks if "%OS%"=="Windows_NT" test is unsuccessful).
It is strange that it is uses specific library versions, e.g.
"xmlgraphics-commons-1.3.jar".
If your library name is any different, Java would not find the library
(but wouldn't print any warning). You will end up with a missing
class - that is the message that you are seeing.
Nest steps might be:
a) find in what *.jar file the missing class is.
(Roughly speaking, all of them are just Zip archives)
b) echo the last line of fop.bat file and check whether that library
is mentioned there.
>
> To be honest I'm not sure how the build process even finds java as it
> is not in my path, but as I know nothing at all about java I don't
> know where to start looking.
It is likely in your path (usually there is java.exe in the Windows directory.
You may try to run "java -version" from a command line.
Best regards,
Konstantin Kolinko
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2860858
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-10-23 00:24:36 CEST