New Library wizard

The New Library wizard allows you to create new libraries which you can then add to a project. JBuilder uses libraries to find everything it needs to run a project as well as for browsing through source, viewing JavaDoc, using the visual designer, applying CodeInsight, and compiling code. Libraries are collections of paths that include classes, source files, and documentation files. Individual library paths are often contained in JAR or ZIP files but can also be contained in directories.

When libraries are added to JBuilder, they are added to the class path so JBuilder can find them. Libraries are searched in the order listed. The order of libraries can be changed in the Configure Libraries dialog box (Tools|Configure Libraries).

See also:
"How JBuilder constructs paths"

To open the New Library wizard, choose Tools|Configure Library and press the New button.

You can also access the wizard from the Paths page of the Project Properties dialog box (Project|Project Properties). Select the Required Libraries tab and select Add. Then press the New button to open the New Library wizard.

The New Library wizard contains the following fields:

Name

Name the library you are creating.

Location to store new Library specification

Stores the library specification in a .library file in the Project, User Home, JBuilder directories or a user-defined folder.

User Home

Saves the .library file to the .jbuilder directory in the user's home directory.

JBuilder

Saves the .library file to the jbuilder/lib directory. Multiple users who are using JBuilder on a network or sharing JBuilder on a single machine have access to the libraries in this folder.

Project

Saves the .library file in the current project's directory. This is a feature of JBuilder Professional and Enterprise. When using the version control feature in Enterprise, the .library file is checked in with the other project files.

User-defined Folder

Saves the .library file to a user-defined folder or shared directory. You must add the new folder using the Add Folder button in the Configure Libraries dialog box before it can appear in the drop-down list. This is a feature of JBuilder Enterprise.

Add

Add one or more paths containing classes, source, or documentation. JBuilder automatically places them on the correct paths.

Remove

Select the libraries you want to remove and press Remove. Multiple select with Shift+Click, Ctrl+Click, or Select All.