This means that saxon8.jar isn't on your classpath (despite appearances).
Before doing
java -cp saxon8.jar net.sf.saxon.Query
try doing "dir" or "ls". Is saxon8.jar listed? If not, you need to add path
information to the directory where you installed it.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: saxon-help-bounces@...
> [mailto:saxon-help-bounces@...] On Behalf
> Of rdhakal@...
> Sent: 13 October 2006 20:35
> To: saxon-help@...
> Subject: [saxon] help
>
> Hi,
>
> When I run saxon as instructed in
> http://www.saxonica.com/documentation/index/gettingstarted/get
> tingstartedjava.html
>
> I got the following error.
>
> > java -cp saxon8.jar net.sf.saxon.Query -t -s
> imdb-complete.xml imdb.
> > xq > imdb.html
>
> Exception in thread \"main\" java.lang.NoClassDefFoundError:
> net.sf.saxon.Query
> at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
> Caused by: java.lang.ClassNotFoundException:
> net.sf.saxon.Query not found in
> gnu.gcj.runtime.SystemClassLoader{urls=[],
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[],
> parent=null}} at java.net.URLClassLoader.findClass(java.lang.String)
> (/usr/lib/libgcj.so.6.0.0)
> at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
> (/usr/lib/libgcj.so.6.0.0)
> at java.lang.ClassLoader.loadClass(java.lang.String)
> (/usr/lib/libgcj.so.6.0.0)
> at java.lang.Class.forName(java.lang.String, boolean,
> java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0) at
> gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
>
>
> I installed the saxon8 and I have the path to it in my start
> up file.
> If you could please tell me why I am getting this error, I
> would be very grateful.
> I get nothing when I open the imdb.html file.
>
> Thanks you,
> Reet
>
>
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier Download IBM WebSphere Application Server
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> saxon-help mailing list
> saxon-help@...
> https://lists.sourceforge.net/lists/listinfo/saxon-help
|