You don't need to recompile the source code. If it can't find a class that's either because you've got the name wrong, or because you've got the (run-time) classpath wrong.
 
The XPathExample class is in the samples/java directory, and if it can't be found that means this directory isn't being searched.
 
Michael Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Johnson Cheung
Sent: 18 September 2003 04:20
To: 'saxon-help@lists.sourceforge.net'
Subject: [saxon] NoClassDefFoundError: XPathExample

I have downloaded the version 7.6.5a and would like to try out the examples but in vain.
 
I have tried to recompile the source with classpath and sourcepath specified and it is okay. However, when I try to execute the class, it fails with the following error.
 
Exception in thread "main" java.lang.NoClassDefFoundError: XPathExample
 
regards,
    Johnson