This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Installed SAXON, but the following occured... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Installed SAXON, but the following occured..." Watch "Installed SAXON, but the following occured..." New topic
Author

Installed SAXON, but the following occured...

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138

I installed SAXON at my iMac.

But, the issue is that when I run the following command from the Terminal:

java net.sf.saxon.Transform

I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/saxon/Transform

Why is that? And, What are the correct settings for SAXON on Mac?

Thanks.
Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
It worked when I moved all the document salong with the .jar files to

/System/Library/Java

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
It worked when I moved all the document salong with the .jar files to

/System/Library/Java

I wouldn't do that - all Java processes will now see that jar file, which may not be what you want. Instead, put the jar file in the classpath; something like:

java -classpath saxon.jar net.sf.saxon.Transform

(or whatever the jar file is called).


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installed SAXON, but the following occured...
 
Similar Threads
saxon XT -question?
Problem with namespace:: axis with SAXON processor
==> saxonb : but : RuntimeException: No query engine found
Any solutions to have one xml source file, one XSLT file and create many html files??
saxon and java version