[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]