# Adding a JAR file as a library

To add a JAR file as a library, you can either drag and drop the JAR file into the workbench from the file system or you can use the Import wizard to import the file.

1. From the workbench menu bar, select File > Import. The Import wizard opens
2. Select File System, then click Next.
3. In the From directory field, type or browse to select the directory where the JAR file resides.
4. In the import selection panes, expand the hierarchy and use the buttons to select the JAR file you want to import.
5. In the Into folder field, type or browse to select a workbench container for the JAR file.
6. Click Finish when you are done.
7. You now must add the JAR file to the build class path of any projects that need this library.

Java builder
Build classpath

Adding source code as individual files

Java Build Path