[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Use Saxon Proccessor to Process XQuery (withoutexternal variables)

Michael Kay mike at saxonica.com
Mon Dec 31 18:30:28 PST 2007


  Use Saxon Proccessor to Process XQuery
	(withoutexternal variables)
> 
> java -classpath ./saxon8.jar net.sf.Query question_1_1.xquery 
> > query_1.xml Exception in thread "main" 
> java.lang.NoClassDefFoundError: net/sf/Query

I'm having trouble seeing how you can read this error message and fail to
spot your mistake. 

java.lang.NoClassDefFoundError is the name of a Java exception class, and a
quick Google shows its meaning: "A NoClassDefFoundError is thrown when a
classloader or the Java Virtual Machine tries to load a class and no
definition of the class can be found."

So I would expect you to check that you have typed the class name correctly,
and then to spot that net.sf.Query should have been net.sf.saxon.Query.

I suspect that you're dismissing the error message as cryptic and
incomprehensible without really trying to read it and understand it. I'd
suggest you make the effort to try and understand such messages: with a bit
of practice, they will start to make sense, and you will then save us all a
lot of trouble.

This message comes from Java rather than from Saxon, incidentally, so
there's no point suggesting improved wording here.

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



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-2007 All Rights Reserved.