Re: DOCBOOK-APPS: Problem executing Xalan or Saxon...

From
Ed Nixon <>
Date
2001-06-21T20:33:50+00:00
ID
5.1.0.14.2.20010621163031.00af39b0@lynnparknt1
Thread
Re: DOCBOOK-APPS: Problem executing Xalan or Saxon...
I just glanced at your procedure but the error would be telling me to check 
that my CLASSPATH environment variable included the saxon.jar and/or the 
xalan.jar files.

                   ...edN


At 04:01 PM 21/06/2001 -0400, Dan York wrote:
>Folks,
>
>My laptop died this morning, taking with it my XSL processing environment!
>It's going in for repair, but in the meantime, I'm getting my (RH Linux 6.2)
>desktop at work set up to work with XML/XSL. I installed everything[1],
>but now with either Saxon or Xalan, I get an error like this (for Saxon):
>
>   Exception in thread "main" java.lang.NoClassDefFoundError:
>   org/icl/saxon/Stylesheet
>
>with Xalan it is:
>
>   Exception in thread "main" java.lang.NoClassDefFoundError:
>   org/apache/xalan/xslt/Process
>
>Any suggestions would be greatly appreciated.  I think I've duplicated
>the steps I went through on my laptop... and it's frustrating that it
>doesn't work.
>
>Thanks,
>Dan
>
>[1] I installed JRE 1.3.1, Xalan 2.1.0, Saxon 6.2.2, and Norm's XSL
>stylesheets 1.40. All of these were downloaded *today* from their
>original distribution web sites.
>
>The commands I used were (split into multiple lines):
>
>   $ java com.icl.saxon.Stylesheet test.xml
>   /usr/share/sgml/docbook-xsl-1.40/html/docbook.xsl
>
>   $ java org.apache.xalan.xslt.Process -in test.xml -out test.html -xsl
>   /usr/share/sgml/docbook-xsl-1.40/html/docbook.xsl
>
>My PATH variable includes the java executable.  My CLASSPATH is set to:
>
> 
>.:/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
>
>Xalan is in /usr/share/xalan, Saxon in /usr/share/saxon.  The 'test.xml'
>file is a very basic DocBook XML file that processed perfectly fine with
>the identical setup on my laptop.
>
>--
>Dan York, Director of Training        
>Ph: +1-613-751-4401  Mobile: +1-613-263-4312 Fax: +1-613-564-7739
>e-smith, inc. 150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
>http://www.e-smith.com/            open source, open mind