title: JSONObject ClassNotFoundException
body: <p>I am working in IntelliJ and using Maven. I have a class that uses <code>JSONObject</code>:</p>
  <pre><code>import org.json.JSONObject;
  
  try {
    JSONObject documentObj = new JSONObject(document);
  } catch (Exception e) {
    throw new RuntimeException(&quot;Failed to convert JSON String to JSON Object.&quot;, e);
  }
  </code></pre>
  <p>Maven dependency in the pom.xml file:</p>
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.json&lt;/groupId&gt;
    &lt;artifactId&gt;json&lt;/artifactId&gt;
    &lt;version&gt;20090211&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>I can do a <code>mvn clean package</code> and builds successfully. But when I try to run it, I get:</p>
  <blockquote>
  <p>Error: java.lang.ClassNotFoundException: org.json.JSONObject</p>
  </blockquote>
  <p>Is there anything else I'm missing here? Thanks!</p>