Possible reasons for failing to find a class are that the class isn't on the classpath (OK, you say it is, but we've all been wrong on this); that the class isn't public; that the method isn't public; that the method isn't static.
Using the -TJ option on the command line will produce diagnostics that may help you to distinguish these possible causes.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference