ClassNotFound means that that jar is not in your classpath. Are you getting this when running or when compiling. There will be a classpath set for the compiler, that is usually what you get when you add it to your
IDE. And there is a classpath when you are running your application.
In you case, in that one scenario the jar file is not in your classpath.
Thanks
Mark