Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Mona M. Everett <everett@mo...> - 2004-09-07 07:52:28
|
Wow! Thanks! Mona Everett Michael Kay wrote: >The error means that the Java VM can't find the JAR file containing the >Saxon code - that is, the file saxon8.jar. For Java to find this file, it >needs to be on the class path - that is, it needs to be present in the list >of files in the CLASSPATH environment variable, or in the -cp option on the >command line. > >The simplest way to start is to run directly from the JAR file. Assuming you >are on Windows and this is c:\saxon\saxon8.jar, run the command > >java -jar c:\saxon\saxon8.jar -o test.xml groupCRN.xml crn.xsl > >This bypasses the classpath entirely, which is OK until you need to load >Java code from other places as well (e.g. to use extension functions, or a >different XML parser). Then you can specify a classpath on the command line: > >java -cp c:\saxon\saxon8.jar net.sf.saxon.Transform -o test.xml groupCRN.xml >crn.xsl > >But if the CLASSPATH environment variable contains the filename >c:\saxon\saxon8.jar then you can leave out the -cp option, and enter: > >java net.sf.saxon.Transform -o test.xml groupCRN.xml crn.xsl > >On Windows, you can set environment variables by going to Settings / Control >Panel / System / Advanced / Environment Variables. > >Michael Kay > > > >>-----Original Message----- >>From: saxon-help-admin@... >>[mailto:saxon-help-admin@...] On Behalf Of >>Mona M. Everett >>Sent: 07 September 2004 03:15 >>To: saxon-help@... >>Subject: [saxon] Cannot get started >> >>I am trying to use Saxon 8 from the command line: >>java net.sf.saxon.Transform -o test.xml groupCRN.xml crn.xsl >>( I am in the file directory ) >>I get this error every time. Java 1.4 does seem to be installed. : >>Exception in thread "main" java.lang.NoClassDefFoundError: >>net/sf/saxon/Transform >> >>I tried from the Saxon directory, too, and gave the full path to the >>file name. >> >>I don't know anything about Java so I have no clue what this >>error means >>or how to fix it. >> >>Could someone help this Saxon newbie, please, please! >> >>Thanks, >> >>Mona Everett >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>_______________________________________________ >>saxon-help mailing list >>saxon-help@... >>https://lists.sourceforge.net/lists/listinfo/saxon-help >> >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >_______________________________________________ >saxon-help mailing list >saxon-help@... >https://lists.sourceforge.net/lists/listinfo/saxon-help > > > > > |