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.
- From the workbench menu bar, select File > Import. The Import wizard opens
- Select File System, then click Next.
- In the From directory field, type or browse to select the directory where the JAR file resides.
- In the import selection panes, expand the hierarchy and use the buttons to select the JAR file you want to import.
- In the Into folder field, type or browse to select a workbench container for the JAR file.
- Click Finish when you are done.
- You now must add the JAR file to the build class path of any projects that need this library.
Adding a JAR file to the build path
Attaching source to a JAR file
Working with build paths
Adding source code as individual files