title: VSCode: How to import a jar file into your java project?
body: <p>So I'm pretty much new to Java and in one of my university courses, my prof gave us the following instruction:</p>
  <ol>
  <li><p>Download the attached .jar file.</p>
  </li>
  <li><p>Create a java project in eclipse. It does not matter what is the name of the project.</p>
  </li>
  <li><p>Right click on the name of the project and select ‘import’</p>
  </li>
  <li><p>From ‘General’ choose ‘Archive file’ and click next.</p>
  </li>
  <li><p>Click ‘Browse’ to select the a1.jar file that you have already download.</p>
  </li>
  <li><p>Click ‘Finish’.</p>
  </li>
  </ol>
  <p>If all the steps were done correctly you should see ‘Assignment1’ under ‘src’ and Junit5 under
  the project. In case ‘Assignment1’ was not under ‘src’, drag and drop it to the ‘src’ folder.</p>
  <p>This instruction is based on Eclipse but I'm using VSCode, so far I've been able to run Java just fine by using the java extension.</p>
  <p>I've tried some suggestion from <a href="https://stackoverflow.com/questions/50232557/visual-studio-code-java-extension-howto-add-jar-to-classpath">Visual Studio Code, Java Extension, howto add jar to classpath</a> but it just didn't work (basically no Assignment1 under src).</p>
  <p>Is there any solution to this problem or should I just simply switch to Eclipse.
  <a href="https://i.stack.imgur.com/N9lZK.png" rel="nofollow noreferrer">My Project folder structure</a></p>