This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Saxon and Java setup Error
- From: Dave Pawson <dpawson at nildram dot co dot uk>
- To: RENE HACHE <rene-hache at shaw dot ca>,docbook-apps at lists dot oasis-open dot org
- Date: Sun, 13 Jun 2004 18:28:15 +0100
- Subject: Re: [docbook-apps] Saxon and Java setup Error
- References: <2cbb9192cb98a3.2cb98a32cbb919@shaw.ca>
At 17:13 13/06/2004, RENE HACHE wrote:
I would like to request assitance in interpreting the following. What
steps do I need to take to fix this?
When I type the following line in the command prompt:
C:\>java com.icl.saxon.StyleSheet -o test.html c:\studies\test\test.xml
c:\studies\tools\xsl\html\docbook.xsl
I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/icl/saxon/StyleSheet
Running Windows XP, Saxon 6.5.3
Yes, java has this ?silly? idea of the classpath,
where to look for java files.
You need to tell java where it can find the com.icl.saxon.Stylesheet class.
Its in Saxon653 jar file, so add that, by telling java
java -cp /path/to/saxon.jar com.icl.saxon.StyleSheet -o test.html
c:\studies\test\test.xml c:\studies\tools\xsl\html\docbook.xsl
That puts it in the command line (use a .bat file), rather than
including it for all java apps, which uses the environment variable
CLASSPATH (same way as windows uses PATH).
I find it easier that way.
HTH DaveP
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.