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

Related concepts

Java builder
Build classpath

Related tasks

Adding a JAR file to the build path
Attaching source to a JAR file
Working with build paths
Adding source code as individual files

Related reference
Java Build Path

Copyright IBM Corporation 2000, 2002. All Rights Reserved.