This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Any suggestions on Java problems? (with Saxon)
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: Any suggestions on Java problems? (with Saxon)
- From: Dan York <dyork at e-smith dot com>
- Date: Mon, 17 Sep 2001 14:49:06 -0400
- List-Id: <docbook-apps.lists.oasis-open.org>
- Organization: e-smith, Inc.
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/samples/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
--
Dan York, Director of Training dyork@e-smith.com
Ph: +1-613-751-4401 Cell: +1-613-263-4312 Fax: +1-613-564-7739
Mitel Network Corporation Network Server Solutions Group
150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ http://www.mitel.com/
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>