blob: 7abc01aee7043851eb9c5420898d243aff4af3c2 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Standard EJB Module Project Properties Dialog Box: Libraries</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="org.netbeans.modules.j2ee.ejbjarproject.ui.customizer.CustomizerLibraries" name="org.netbeans.modules.j2ee.ejbjarproject.ui.customizer.CustomizerLibraries"></a></p>
<div id="NBCSH4574"><!-- infolevel="all" infotype="General" --><a id="sthref654" name="sthref654"></a>
<h1>Standard EJB Module Project Properties Dialog Box: Libraries</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>The Libraries page lets you set up the libraries that the project contains on its classpath.</p>
<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t20">Element</th>
<th align="left" valign="bottom" id="r1c2-t20">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t20" headers="r1c1-t20">
<p>Java Platform</p>
</td>
<td align="left" headers="r2c1-t20 r1c2-t20">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 <b>Manage Platforms</b>.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t20" headers="r1c1-t20">
<p>Libraries Folder</p>
</td>
<td align="left" headers="r3c1-t20 r1c2-t20">
<p>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.</p>
<p>To specify the folder, click <b>Browse</b>. 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.</p>
<p>Each standard EJB module project maintains a separate classpath for compilation, compiling tests, and running tests. Use the buttons on the right of the dialog box to add, remove, and change the order of classpath elements. You can add any of the following:</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t20" headers="r1c1-t20">
<p>&nbsp;&nbsp;&nbsp;&nbsp;JAR file or Folder</p>
</td>
<td align="left" headers="r4c1-t20 r1c2-t20">A JAR file or folder containing compiled class files and other resources.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t20" headers="r1c1-t20">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Library</p>
</td>
<td align="left" headers="r5c1-t20 r1c2-t20">A collection of JAR files, source code, and Javadoc that has been registered in the Ant Library Manager.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG389">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t20" headers="r1c1-t20">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Project</p>
</td>
<td align="left" headers="r6c1-t20 r1c2-t20">The build output, source files, and Javadoc files of another IDE project.</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<p>You can have multiple source roots in a standard project, with the following exceptions:</p>
<ul>
<li>The source root cannot already exist in another IDE project.</li>
<li>The source root cannot already be added to another compilation unit of the same project. For example, a source root that is registered under Test Packages cannot be added to the list of Source Packages.</li>
<li>All of the source roots are packaged into the same JAR file and share the same classpath.</li>
</ul>
<p><b>Note</b>: If you have a source root that needs to be used by several projects, you should create a separate project for the source root and set up compilation dependencies between the projects.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG389">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>You can use the Source/Binary Format combo box to set the lowest Java platform version with which the generated Java code should be compatible. This setting corresponds to the javac <code dir="ltr">-source</code> option. Setting the source/binary format helps prevent you from using Java language constructs that are not available in the platform version to which you want to deploy. However, setting the source/binary format does not ensure that the platform APIs are used compatibly with that platform version. To make sure that your application is fully compatible with an earlier Java platform version, you need to switch to the Libraries tab and set the Java Platform setting to the minimum version on which you plan to deploy.</p>
<p><b>Note</b>: Specifying the source/binary format does not change the Java platform whose libraries and executables are used to compile and run your project. To set the Java platform that is used for compiling and running your project, click <b>Libraries</b> and set the Java Platform setting accordingly. You cannot set the source/binary format of a project to a higher release than the project's Java platform.</p>
<a id="NBCSH4583" name="NBCSH4583"></a>
<p><b>Test Packages Folders</b></p>
<p>You can use this pane to specify the folder that the IDE uses when creating JUnit tests. By default, when you create a project the IDE creates a test packages folder called <code dir="ltr">test</code> with the label <b>Test Packages</b>. Use the buttons to the right of the list to remove the selected folder or to specify the folder that the IDE uses when creating tests. You can also modify the <b>Label</b> field to change how the folder is displayed in the Projects window.</p>
<p>To create JUnit tests with the IDE, a project must have a test packages folder. If the test packages folder for your project is missing or unavailable, you can create a new folder in your project and then use this pane to designate the new folder as the test packages folder.</p>
<a id="NBCSH4584" name="NBCSH4584"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG370">
<param name="text" value="<html><u>&quot;Using Java Project Templates&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG465">
<param name="text" value="<html><u>&quot;Setting the Target JDK in a Project&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2115">
<param name="text" value="<html><u>&quot;Working with Ant&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2103">
<param name="text" value="<html><u>&quot;Working with Javadoc Documentation&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<!-- -->
<!-- Start Footer -->
<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>