title: NoClassDefFoundError when trying to parse JSON with JSON simple
body: <p>I use JSON simple to parse JSON and I get <code>NoClassDefFoundError</code> when trying to create <code>JSONParser</code> object.</p>
  
  <pre><code>import org.json.simple.JSONObject;
  import org.json.simple.JSONArray;
  import org.json.simple.parser.JSONParser;
  ...
  JSONParser parser = new JSONParser();
  </code></pre>
  
  <p>I compile program with command:</p>
  
  <pre><code>javac MyProgram.java -cp json-simple-1.1.1.jar
  </code></pre>
  
  <p>And it compiles fine.
  But when I execute program with this command:</p>
  
  <pre><code>java MyProgram
  </code></pre>
  
  <p>I get <code>NoClassDefFoundError</code></p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>EDIT</strong>:<br/>
  Full error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser
          at getNotesFromNoter.sendPost(getNotesFromNoter.java:53)
          at getNotesFromNoter.main(getNotesFromNoter.java:14)
  Caused by: java.lang.ClassNotFoundException: org.json.simple.parser.JSONParser
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          ... 2 more
  </code></pre>