In a , all classpath relationships between your source folders
are handled by your Ant script. In order for the IDE to know which classes to
include in code completion and refactoring, you have to declare the classpath
in the project settings.
You first declare the classpath in the New Project wizard when creating the
project. You can edit all classpath declarations for an existing project in
the Project Properties dialog box.
Declaring the classpath in the Project Properties
dialog box does not change the actual compilation or runtime classpath of
the source folders. The project's classpath declaration must exactly match
the classpath used by your Ant script.
To declare the classpath for a project:
Build the project so that all of the project's build outputs (JAR files
and WAR files) exist on your computer.
In the Projects window, right-click the project node and choose Properties.
Click Classpath in the right panel of the Project Properties dialog box.
Declare the classpath for the project.
To set a common classpath for all source folders, unselect the Separate
Classpath for Each Source Package Folder checkbox. Then add or remove
classpath elements with the buttons on the right of the dialog box.
To set a separate classpath for each source folder, leave the Separate
Classpath for Each Source Package Folder checkbox selected. Select a source
folder in the drop-down list and add or remove classpath elements for
the source folder.
To add the build output of source folder A to source folder B, select
the source folder B in the drop-down list and click Add JAR/Folder. Then
navigate to the output folder of source folder A and select its build
output. You must have a separate classpath for each source package folder
to set up relational classpath dependencies between source package folders.
If you have attached Javadoc and source files to
a JAR file in the
Library Manager,
the IDE automatically adds the Javadoc
and source files to the project when you register the JAR file on a project's
classpath. You can step into classes and look up Javadoc pages for the classes
without configuring anything else.
For a full guide to configuring free-form projects, see: