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?