How to Import a Java Library (JAR)

Since I use the VS Code IDE, I will provide instructions here on how to import the JAR file into a Java project opened in VS Code.

  1. Open a Java project in VS Code and click on a .java file. Towards the bottom of the File Explorer window, you should see a dropdown menu called Java Projects.
  2. Click on the Java Projects menu and locate the Referenced Libraries folder.
  3. Hover your cursor over the Referenced Libraries folder and click on the "+" icon. Then add the JAR file that you downloaded.
  4. Done!