Wednesday, February 8, 2012

When you run into a classNotFoundException..

In case you do happen to run into a ClassNotFoundException and the culprit is a class outside your own workspace and you do have a jar that fixes the exception, make sure you follow the below mentioned steps :-

1. Copy the jar (that fixes the issue) into some location on your machine.
2. Delete the current jar that is problematic from its said location.
3. Copy the new jar at the required location.
4. Deploy the project with the new jar in place.
5. Run your application to get rid of the exception.

1 comment:

Vinod Krishnan said...

just check the Deployed by default option for the library..