I have a web application and I am loading a class using Class.forname("com.test.abc")
, and this abc class is present in different jar, all jars are present in web-inf/lib
folder. but still i am getting ClassNotFoundException.
How does Class.forname()
works in java? where does it look for the classes?
why I am getting this error? Do I need to add jar where abc is present into maven dependency or manifest file of the jar?