# Enterprise Application Client Project Properties Dialog Box: Libraries

The Libraries panel enables you to register libraries on a project's various classpaths as well as set the target Java platform against which all source files are compiled and run.

Element | Description
--- | ---
Java Platform | You can use the Java Platform drop-down list to set the specific JDK installation that the IDE uses to compile and run your project. The IDE adds the selected platform's libraries to the classpath and uses the platform's executables (such as `javac` and `java`) to run and build the project. The default platform for all projects is the platform on which the IDE is running. To register additional platforms and attach Javadoc and source files to a platform click Manage Platforms.
Libraries Folder | To make it easier to share libraries among different users and projects, you can set a folder to hold those libraries (or references to those libraries). You can create a new folder or specify an existing folder that already contains copies of the libraries on which your project depends. To specify the folder, click Browse. If there is already a libraries folder, a file chooser opens. If there is not a libraries folder, the New Libraries wizard opens. In the New Libraries wizard, you set a libraries folder and then specify how to reference each library. The simplest case is to have the libraries copied to that folder. You can also refer to the libraries in their existing location (with a relative path or an absolute path). If you have specified an existing folder, you also have the option of using copies of libraries that are already in that folder instead of the copies that are contained in the IDE's Ant Library Manager

You can configure the following project classpaths:

- Compilation classpath

- Runtime classpath
- JUnit test compilation classpath
- JUnit test runtime classpath

Use the buttons on the right side of the panel to add, remove, and change the order of classpath elements. You can add any of the following:

- JAR file. A Java archive file somewhere on your system.
- Library. A collection of binary files, source files, and Javadoc files.

- Project. The build output, source files, and Javadoc files of another IDE project.

Notes:

- If a JAR file with attached souce code and Javadoc documentation is registered with a project as a member of a Java Class Library, you can simply add the JAR file to the classpath and the IDE finds the Javadoc documentation and source code automatically. Adding a Java Class Library rather than a regular JAR file also makes it easier for other developers you share the project with to fix broken references to Javadoc documentation and source code.
- Adding a freeform project to the classpath of a standard project does nothing unless you also declare the free-form project's build outputs in the Output page of its Project Properties dialog box.
- By default, the project's compiled sources and everything on the compilation classpath are also on the runtime classpath.
- By default, the project's compiled test files and everything on the tests' compilation classpath are also on the test runtime classpath.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.