Adding a group of class files to a project's classpath tells the IDE which
classes the project should have access to during compilation and execution.
Use the Libraries & Resources properties page to add or remove additional
libraries, projects, or JAR and ZIP files to a classpath for a
.
If you are setting the properties for a project configuration
other than the default configuration (DefaultConfiguration), you
must uncheck the Use Values from "DefaultConfiguration" checkbox at
the top of the page to customize these options.
You can add the following item types to your project:
Project. The
JAR file produced by another project, as well as the associated source files
and Javadoc documentation. Adding this item
to a class path sets up a dependency between the current project and the
selected JAR.
Library. A
collection of JAR files or folders with compiled classes, which can optionally
have associated source files and Javadoc documentation.
JAR file. A JAR file somewhere on your system. Adding a JAR file
creates a library entry named by the JAR and containing the JAR.
Folder. The root of a package or directory containing
files. Adding a folder does not create a library entry.
To add a project, file, folder or library to the project's classpath:
Choose File "active
project name" properties.
This opens the Project Properties dialog.
Expand Build Libraries & Resources
in the left pane.
Click on the appropriate button to open a file chooser for that item type.
Clicking
the Add Library button opens the Library Manager, where you can add or edit
library classes.
If a project
has multiple distribution JAR files, all of the JARs appear in the
Project Jar Files window. You will need to select the correct version
of the JAR file to include with the project configuration.