title: Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject
body: <p>I'm using <code>org.json.JSONObject</code> to pass the parameters to the server. And I'm using Eclipse IDE. I have already added the <code>java-json.jar</code> file to the build path of the project. but still I'm getting the below exception while running the code and no compilation error is displayed. I did clean the project and refreshed several times but still I end up with exception. is there anything missing?</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.getMethod0(Unknown Source)
      at java.lang.Class.getMethod(Unknown Source)
      at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
      at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
  Caused by: java.lang.ClassNotFoundException: org.json.JSONObject
  </code></pre>