title: Import .jar in Visual Studio Code, classpath
body: <p>I am using Visual Studio Code to Write a Java Project. For that i want to use the MigLayout.jar in my Project.</p>
  
  <p>I created a new Project so i would get a .classpath</p>
  
  <p>I tried to follow the instructions here:
  <a href="https://stackoverflow.com/a/54535301/11654683">https://stackoverflow.com/a/54535301/11654683</a></p>
  
  <p>Here you can see my Classpath File</p>
  
  <pre><code>&lt;classpath&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-12"/&gt;
      &lt;classpathentry kind="src" path="src/"/&gt;
      &lt;classpathentry kind="output" path="bin"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="lib/miglayout.jar"&gt;
  &lt;/classpath&gt;
  </code></pre>
  
  <p>When I try to edit my class App.java it says: 
  App.java isnt on the classpath
  Only Syntax errors will be reported.</p>
  
  <p>This is the path of my java file:
  11 - Test Project\Test Project\src\app\app.java</p>
  
  <p>I do want to continue using VS Code and not change to a different Editor.
  How can I finally use my MigLayout.jar without getting these errors?</p>
  
  <p>EDIT:</p>
  
  <p>I created a lib folder next to an independent file and inserted the jar file I wanted to import. VS Code does now understand MigLayout as a type when I import</p>
  
  <p>import net.miginfocom.layout.Grid;
  import net.miginfocom.swing.MigLayout;</p>
  
  <p>But when compiling it says:
  .\Win.java:5: error: package net.miginfocom.layout does not exist
  import net.miginfocom.layout.Grid;
                              ^
  .\Win.java:6: error: package net.miginfocom.swing does not exist
  import net.miginfocom.swing.MigLayout;</p>
  
  <p>As you can see i have referenced it in the browser:
  <a href="https://i.stack.imgur.com/hhvMN.png" rel="nofollow noreferrer">Structure</a></p>