title: Failed to read JSON file in new IDE
body: <p>I have an Eclipse project with the following code:</p>
  
  <pre><code>import org.json.*;
  import org.json.simple.JSONObject;
  
  import java.io.*;
  import java.util.Iterator;
  
  (...)
  
  public static void main( String[] args )
  {   
  String resourceName = "C:\\Users\\Snail_Sniffer\\Desktop\\books.json";
  String jsonData = readFile(resourceName);   
  JSONObject jobj = new JSONObject(jsonData);
  (...)
  </code></pre>
  
  <p>It produces no errors and works as intended, but when I reuse the same code in IntelliJ, it produces following errors:</p>
  
  <blockquote>
    <p>Error:java: constructor JSONObject in class org.json.simple.JSONObject
    cannot be applied to given types;
          required: no arguments
          found:    java.lang.String
          reason: actual and formal argument lists differ in length</p>
  </blockquote>
  
  <p><br></p>
  
  <blockquote>
    <p>Error:java: cannot find symbol
          symbol:   method getString(java.lang.String)
          location: variable jobj of type org.json.simple.JSONObject</p>
  </blockquote>
  
  <p><strong>What is causing the issue and how to workaround it?</strong></p>