blob: d97754d652e5a8794ef916f114a5a7aa9399fbc6 [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>New EJB Module with Existing Sources Wizard: Existing Sources and 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.wizards.PanelSourceFolders" name="org.netbeans.modules.j2ee.ejbjarproject.ui.wizards.PanelSourceFolders"></a></p>
<div id="NBCSH4561"><!-- infolevel="all" infotype="General" --><a id="sthref650" name="sthref650"></a>
<h1>New EJB Module with Existing Sources Wizard: Existing Sources and Libraries</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>This wizard creates a new standard project&nbsp; containing an EJB module. You open the wizard by opening the New Project wizard and selecting the EJB Module with Existing Sources template from the Java EE category.</p>
<p>Your existing EJB module source does not have to adhere to any particular directory structure. You specify the locations of the configuration files, libraries, and source roots. The only requirement is that the module contain a valid <code dir="ltr">ejb-jar.xml</code> deployment descriptor.In the Existing Sources and Libraries page, you specify the following properties:</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-t18">Element</th>
<th align="left" valign="bottom" id="r1c2-t18">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t18" headers="r1c1-t18">
<p>Configuration Files Folder</p>
</td>
<td align="left" headers="r2c1-t18 r1c2-t18">Specifies the location of your deployment descriptors and other configuration files. You must have at least a valid <code dir="ltr">ejb-jar.xml</code> deployment descriptor to complete the wizard.
<p><b>Note</b>: The IDE does not convert deployment descriptors for unsupported application servers to GlassFish deployment descriptors.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t18" headers="r1c1-t18">
<p>Libraries Folder</p>
</td>
<td align="left" headers="r3c1-t18 r1c2-t18">Specifies the location of the class libraries that the EJB module depends on. All JAR files in this folder are added to the EJB module project's classpath and packaged with the module for deployment.
<p><b>Note</b>: The IDE only scans this folder once when you create the project. After the project is created, adding JAR files to this folder outside the IDE does not add them to the module's classpath. You have to add them manually through the Libraries tab of the module's Project Properties dialog box.</p>
</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<p>You can also specify each of the project's source package folders (containing source packages) and test package folders (containing JUnit tests). 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>
<p>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.All of the source roots are packaged into the same JAR file and share the same classpath.</p>
<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.</p>
</li>
</ul>
<a id="NBCSH4564" name="NBCSH4564"></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=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>Developing Applications with NetBeans IDE,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2697">
<param name="text" value="<html><u>&quot;Creating an EJB Module 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=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>
<!-- -->
<!-- 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>