title: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
body: <p>I am using pdfbox in java to convert pdf to images. But when I compile I got the message </p>
  
  <blockquote>
    <p><code>Exception in thread "main" java.lang.NoClassDefFoundError:
    org/apache/commons/logging/LogFactory</code>.</p>
  </blockquote>
  
  <p><a href="http://www.docjar.com/html/api/org/apache/pdfbox/PDFToImage.java.html" rel="noreferrer">Here is the code I am following</a>. Kindly help me to get out of this error.</p>