You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Levy, Alane" <al...@cognex.com> on 2002/03/19 16:40:18 UTC
NoClassDefFoundError
When I tried running the following sample .fo file (from Ch 18 of E.R.
Harold's XML Bible) using FOP version 0.2.0.3:
<?xml version="1.0" ?>
<fo:root xmlns:fo=" <http://www.w3.org/1999/XSL/Format>
http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="only">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="only">
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="20pt" font-family="serif"
line-height="30pt">Hydrogen</fo:block>
<fo:block font-size="20pt" font-family="serif"
line-height="30pt">Helium</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
It produced the following error:
C:\FOP Test>java -cp build\fop.jar;lib
\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0
.jar
;lib\logkit-1.0b4.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop 18-1.fo
18-1.pdf
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log/format
/Formatter
at org.apache.fop.apps.Fop.main(Fop.java:16)
Does anyone have any idea what the problem is? The fop.jar and
xerces-1.2.3.jar files are located in my C:\j2sdk1.4.0\jre\lib\ext
directory. (There were no w3c.jar or jimi-1.0.jar files included with the
FOP distribution.) Is there something wrong in my setup?
Re: NoClassDefFoundError
Posted by Jeremias Maerki <je...@outline.ch>.
> C:\FOP Test>java -cp build\fop.jar;lib
> \batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0
> .jar
> ;lib\logkit-1.0b4.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop 18-1.fo
> 18-1.pdf
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/log/format
> /Formatter
> at org.apache.fop.apps.Fop.main(Fop.java:16)
That's a class from LogKit (logkit-1.0b4.jar). Maybe you have
logkit-1.0.jar in your lib directory, now. So you may have to adjust the
classpath.
> Does anyone have any idea what the problem is? The fop.jar and
> xerces-1.2.3.jar files are located in my C:\j2sdk1.4.0\jre\lib\ext
> directory. (There were no w3c.jar or jimi-1.0.jar files included with the
> FOP distribution.) Is there something wrong in my setup?
w3c.jar is not necessary anymore, I think.
jimi.jar can be downloaded at Sun.
Cheers,
Jeremias Märki
mailto:jeremias.maerki@outline.ch
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch