Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

NoClassDefFoundError is come when some jars or class path is missing from classpath, here commons-logging-1.1.1.jar file is not present in you path. and follow the below steps to resolve this problem: 

  1. Download the common-logging-1.1.1.jar at  http://commons.apache.org/downloads/download_logging.cgi and extract it over your hard drive.
  2. Add the jar to lib folder and then to classpath from java build path by right clicking on project , click properties and select java build path and select the libraries, now click the add jar button, search the above jar from lib and add it to your project.
  3. Build your project again if required, which is mandatory for some cases.
Now enjoy the issue free application.
Must Read Articles:
We frequently update my articles to best of my knowledge, please touch base with us to get maximum.

If you like reading Please share with others or provide feedback to make it better. 

Bhanu Pratap