[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: ClassPath

Subject: RE: ClassPath
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 10 Jun 2005 14:22:58 +0100
unable to access jarfile
>       My class path as is
> 
>   C:\Program 
> Files\Altova\xmlspy\XMLSpyInterface.jar;C:\Program 
> Files\Java\jdk1.5.0_02\bin;C:\saxon84
> 
>   Is there a syntax error ?

No, but if saxon8.jar is in c:\saxon84, then saxon8.jar isn't on your
classpath. The JAR file itself (not the directory containing it) needs to be
on the classpath.
> 
> Using an example from Mike's excellent book
> 
> C:\Program Files\jEdit 4.3pre2> java -jar 
> C:\saxon84\saxon8.jar  D:\seipas\OOSAD\SaxonNet\othello.xml 
> D:\seipas\OOSAD\SaxonNet\wordCount.xsl
> 
> Works perfectly
> 
> 
> C:\Program Files\jEdit 4.3pre2> java -jar saxon8.jar  
> D:\seipas\OOSAD\SaxonNet\othello.xml 
> D:\seipas\OOSAD\SaxonNet\wordCount.xsl
> 
> Gives Error
> Unable to access jarfile saxon8.jar
> Process java exited with code 1

That's because saxon8.jar isn't in your current directory.
> 
> OR
> C:\Program Files\jEdit 4.3pre2> java  net.sf.saxon.Transform  
> D:\seipas\OOSAD\SaxonNet\othello.xml  
> D:\seipas\OOSAD\SaxonNet\wordCount.xsl
> 
> Gives Error
> java.lang.NoClassDefFoundError: net/sf/saxon/Transform
> Exception in thread "main" Process java exited with code 1
> 

That's because saxon8.jar isn't on your classpath.

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.