This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Any suggestions on Java problems? (with Saxon)
- To: Docbook Apps <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: Any suggestions on Java problems? (with Saxon)
- From: carlos at cvc dot edu (Carlos)
- Date: Mon, 17 Sep 2001 12:05:38 -0700
- List-Id: <docbook-apps.lists.oasis-open.org>
Dan:
Try the following:
java com.icl.saxon.StyleSheet
That usually works for me
Carlos
Once upon a time, "Dan York" was seen writting:
> Having some Java problems today. Normally I use 'xsltproc' for all
> my DocBook XML, but today I wanted to do a comparison with the output
> from Saxon 6.2.2. But I keep getting this annoying error about
> 'java.lang.NoClassDefFoundError'. In the script below, you can see that
> the relevant .jar files are in my $CLASSPATH variable, and I have also
> tried calling it directly using the command-line '-cp' to set the
> classpath. In neither case does it work. (I have also blanked out the
> CLASSPATH variable as well in the process of testing.)
>
> I am using Sun's 1.3.1 JRE. I also tried it with IBM's JRE as well.
> Any ideas? (Beyond the obvious of avoiding Java altogether and
> sticking with xsltproc? ;-)
>
> $ echo $CLASSPATH
>
> .:/usr/share/xalan/xalan.jar:/usr/share/xalan/xerces.jar:/usr/share/xalan/samp
> les/xalansamples.jar:/usr/share/xalan/bsf.jar:/usr/share/saxon/saxon.jar:/usr/
> share/saxon/saxon-fop.jar
> $
> $ java com.icl.saxon.Stylesheet sample.xml indent.xsl > out-saxon.xml
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/icl/saxon/Stylesheet
> $
> $ java -cp /usr/share/saxon/saxon.jar com.icl.saxon.Stylesheet sample.xml
> indent.xsl > out-saxon.xml
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/icl/saxon/Stylesheet
> $
>
> Thanks,
> Dan
--
---
P |Carlos Araya
_ |WebCT Administrator/Trainer
G |California Virtual Campus, Region 1
---- C/O De Anza College
10650 Bubb Road
Cupertino, CA 95014
mail: carlos@cvc.edu
web: http://www.cvc1.org (work)
http://www.silverwolf-net.net (personal)
PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756
If a man does not erect in this age his own tomb ere he dies, he shall
live no longer in monument than the bell rings, and the widow weeps.
-- Wm. Shakespeare
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>