title: Java Intellj: org.json.simple does not exist
body: <p>I know that questions have been asked before, but it does not solve my problem in my school project.</p>
  <p>I downloaded the <code>JSON.simple</code> jar file from <a href="https://mkyong.com/java/json-simple-example-read-and-write-json/" rel="nofollow noreferrer">https://mkyong.com/java/json-simple-example-read-and-write-json/</a>, then move it to the <code>src</code> directory and import it.</p>
  <p>In the src folder I also have <code>Main.java</code>, <code>Manager.java</code> and <code>Peer.java</code>, in which <code>Manager</code> and <code>Peer</code> uses the <code>json.simple</code> package.</p>
  <p>I am using Intellj.</p>
  <p>At <code>src</code> directory, I try to run <code>javac Main.java</code>, I get 14 errors including</p>
  <pre><code>import org.json.simple.parser.JSONParser;
                               ^
  .\Manager.java:95: error: cannot find symbol
  
  </code></pre>
  <p>Then I tried to provide the full path for the jar file: <code>javac -cp C:\Users\yiges\Desktop\COMP90015\Project3\WhiteBoard\src\json-simple-1.1 Main.java</code></p>
  <p>I get the 4 errors including:</p>
  <pre><code>imple-1.1 Main.java
  Main.java:15: error: cannot find symbol
              Manager manager = new Manager(port);
              ^
    symbol:   class Manager
    location: class Main
  </code></pre>
  <p>Then I tried to compile all java files: <code>javac -cp C:\Users\yiges\Desktop\COMP90015\Project3\WhiteBoard\src\json-s imple-1.1 *.java</code> or simply <code> javac *.java</code></p>
  <p>I get again 14 errors including:</p>
  <pre><code>Manager.java:1: error: package org.json.simple does not exist
  import org.json.simple.JSONObject;
                        ^
  </code></pre>
  <p>How do I solve this issue?</p>
  <p>Thanks for helping!</p>