Adding 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.

2.

In the import wizard, select File System, then click Next.

3.

In the 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 Where Do You Want The Imported Resources To Go? 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.

See Adding a JAR File to the Build Path

Related Topics:

  • See Working with Build Paths
  • See Attaching Source to a JAR File
  •