← Prev in month ← Prev in thread

DOCBOOK-APPS: Any suggestions on Java problems? (with Saxon)

From
Dan York <>
Date
2001-09-17T18:51:19+00:00
ID
Thread
DOCBOOK-APPS: Any suggestions on Java problems? (with Saxon)
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        
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/
← Prev in month ← Prev in thread