• Post Reply Bookmark Topic Watch Topic
  • New Topic

Installed SAXON, but the following occured...  RSS feed

 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It worked when I moved all the document salong with the .jar files to

/System/Library/Java

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!