This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Saxon and Java setup Error


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/.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]