Group do found Except

Hi. I compiled a java class into a jar file, and put it under webapps/xwiki/WEB-INF/lib, but got a ClassNotFoundException after started xwiki. The jar file is not a xwiki component nor extension.

The exception was thrown while executing Class.forName(theNameOfTheClassInLib).

Is it a wrong way to refer to a third party lib?

The error suggest Java cannot find your class. Have you restarted after you added the new JAR file (JARs located in WEB-INF/lib are loaded at startup) ?