Looking at the source file in question[1, line 1520], it is complaining that it can't find the (graphics-related) java.awt.Rectangle class. [2] is the Sun error description (indeed, the exception means it can't find a class), the bottom of [3] indicates that the problem may be with your X Windowing system, but if not, a search on "NoClassDefFoundError" and "AWT" returns 6000+ hits [4] (add "FOP" to the search to get down to 140.)

(BTW, does anyone know if FOP runs--or runs well--on Gentoo[5]? That distribution is becoming increasingly of interest to me.)

HTH,
Glen


[1] http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/layout/LineArea.java?annotate=1.53.2.19&hideattic=0
[2] http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoClassDefFoundError.html
[3] http://www.myjavaserver.com/exec/YKtoYetpKLwzNf2CZvwBFfNjLDwyZnxzT9vB1j3BM1JBPfwBMuwBVHwp0f2y
[4] http://www.google.com/search?hl=en&lr=&q=java.lang.NoClassDefFoundError+awt&btnG=Search
[5] http://www.gentoo.org/



Warren Young wrote:

I'm running the latest released version of FOP on a Fedora Core 3 system with JDK 1.4.2_08, and am getting a very odd NoClassDefFoundError exception. It isn't the standard one mentioned in the FAQ where the program doesn't run at all. Instead, fop runs for about 20 seconds, clearly processing the document (it gives the same set of warnings as I see on other systems up to the trouble point) and then it says this:

Exception in thread "main" java.lang.NoClassDefFoundError
at org.apache.fop.layout.LineArea.addSpacedWord(LineArea.java:1520)
at org.apache.fop.layout.LineArea.addText(LineArea.java:683)
at org.apache.fop.fo.FOText.addRealText(FOText.java:278)
at org.apache.fop.fo.FOText.addText(FOText.java:252)
at org.apache.fop.fo.FOText.layout(FOText.java:161)
at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:178)
at org.apache.fop.fo.FObjMixed.layout(FObjMixed.java:139)
at org.apache.fop.fo.flow.Block.layout(Block.java:257)
at org.apache.fop.fo.flow.Block.layout(Block.java:257)
.... etc.


Why would the program be running, and then suddenly fail to find one of its classes?

This same version of FOP is working on another of my FC3 systems, but there are too many differences between the two systems to easily pin any one thing down.

If you want to try processing the document yourself, it's the MySQL++ user guide, available in the source tarball here:

    http://tangentsoft.net/mysql++/

The command I'm giving is:

    /usr/local/fop/fop.sh -q -xml userman.xml -xsl fo.xsl \
        userman.pdf

fo.xsl is just a "wrapper" around the fo/docbook.xsl file that came with the system, to set a few local preferences. Again, this is all working on another FC3 system, as well as on a Red Hat Linux 9 system. It's something specific to this one machine, and I don't see what it is.

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