title: Idea intellij doesn't import library [pictures included]
body: <p>I have a <code>.java</code> file that makes use of <code>JSON</code> library, it imports the library's package:</p>
  
  <p><a href="https://i.stack.imgur.com/cOQAc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cOQAc.png" alt="enter image description here"></a></p>
  
  <p>However the package isn't recognised, so I tried to add the library to my project:</p>
  
  <p><a href="https://i.stack.imgur.com/5KgTj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5KgTj.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ygXgw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ygXgw.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Zk4FF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zk4FF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ViVnZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ViVnZ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/jGLSd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jGLSd.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/1aHir.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1aHir.png" alt="enter image description here"></a></p>
  
  <p>But it didn't work:</p>
  
  <p><a href="https://i.stack.imgur.com/iIJmq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iIJmq.png" alt="enter image description here"></a></p>
  
  <p>My library is located inside <code>Root/libs/LibraryFolder1/LibraryFolder2/.java files and .classe files and .jar file</code></p>
  
  <p>I tried importing both .jar and .java and library as a whole (by clicking on the root folder). Neither worked.</p>
  
  <p><strong>EDIT</strong>: I've also tried running a command:</p>
  
  <p><code>mvn install:install-file -Dfile=C:\xampp\tomcat\webapps\Root\libs\LibraryFolder1\LibraryFolder2\Craps.jar -DgroupId=org.json -DartifactId=json -Dpackaging=jar -Dversion=20150912 -DgeneratePom=true</code></p>
  
  <p>which gives a <code>BUILD SUCCESS</code> result, but doesn't seem to change anything.</p>