xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@cvc.edu (Carlos)
Subject Re: I get a mysterious NoClassDefFoundError
Date Wed, 01 May 2002 15:09:31 GMT
Look at the fop.sh script and see what is it that you're missing. I normally
run fop like this:

/usr/local/java/fop/fop.sh -xml why-naginata.xml -xsl xsl/fo/cal.xsl -pdf
naginata.pdf


Note that you can specify additional classpath on the fop.sh script. See if
the fop.sh script works and let us know. It may also have to do with the
fact that J2SDK1.4 comes with older versions of Xerces and Xalan bundled by
default and it will use the ones bundled over those on your classpath.

See if fop.sh works and if it doesn't consider downgrading to 1.3

Carlos


On 05/01/02 7:43, "L'eau" <li_leau@yahoo.com> wrote:

> Hi, I'm new to the list.
> 
> I don't have any clue why this is happening to me. I've spent
> the past 4 hours trying to figure this out. I stumbled onto a
> similar error message in the archives here, and it helped me
> realize I needed to add the classpaths, but I'm still having the
> error. I'm using the latest version of FOP, with J2SDK 1.4.
> 
> C:\xsl\build>java -cp
> c:\xsl\libs\ant.jar;c:\xsl\libs\avalon-framework-4.0.jar;c:\xsl\lib\batik.jar;
> c:\xsl\lib\logkit-1.0.jar;c:\xsl\lib\xalan-2.0.0.jar;c:\xsl\lib\xerces-1.2.3.j
> ar;c:\xsl\build\fop.jar
> -jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/log/format/Formatter
>       at org.apache.fop.apps.Fop.main(Fop.java:16)
> 
> 
> I just don't get it, and I'm on the verge of going postal.
> Thanx in advance for all help, guidance, or suggestions. BTW,
> who do I send a message to about the FOP website and
> documentation seriously needing to give workable examples of how
> to run the program? It quite misled me and I nearly gave up on
> it (but couldn't find another free XSL-FO renderer as an
> alternative so I had to return to this stressful thing).
> 
> Devon
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email               carlos@cvc.edu
web                 http://www.cvc1.org/ (work)
                    http://www.silverwolf-net.net (personal)
phone               408 257 0420 (work)
PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

"If there is artificial intelligence, doesn't that imply there is also
artificial stupidity!"


Mime
View raw message