Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using saxon7.8

Status
Not open for further replies.

lalzad

IS-IT--Management
Nov 29, 2006
15
CA
The book says
"If you want to be able to run saxon7.jar from ant directory you will need to add the file, giving its full path, to your CLASSPATH environment."

I did exactly as told, and now when you go to system properties->advanced->Environment Variables, you can see the classpath variable with the location path.But the saxon validator is not working from any directory.
It works only on those files which are stored in the same directory as saxon, otherwise gives an error message saying "file not found".Can anybody help.
 
I don't know how are you using it, but I suppose that you need to give the full path in the command line or ant task to the file you're trying to process.

That has nothing to do with classpath.

Cheers,
Dian
 
This is the file path I have to give in the command line
C:/Documents and Settings/admin/My Documents/saxon7-8
followed by the command java -jar saxon7.jar.........

All the files have to be stored in the file saxon7-8 for them to work.
But I want to store the files in the directory
C:/BXML/Ch09. If I store them in this directory then saxon doesnt work on them.
 
I mean the path of the files you want to transform, not the jar.

Cheers,
Dian
 
When I give the path of the files I want to transform, from the commandline, it says "unable to access jar file saxon7.jar".
 
Post the command line instruction you're using. Anyway, I'd post this on the Java forum as it has little to do with XML but with classpath configuration

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top