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?