📄 about.html
字号:
<a name="wp68426"> </a><h4 class="pHeading3">Required Software</h4><a name="wp68429"> </a><p class="pBody">If you are viewing this online, you need to download <em class="cEmphasis">The J2EE<img src="images/tm.gif" border="0" alt="Trademarked"> 1.4 Tutorial</em> from:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative"><code class="cCode"><a href="http://java.sun.com/j2ee/1.4/download.html#tutorial" target="_blank">http://java.sun.com/j2ee/1.4/download.html#tutorial</a></code><a name="wp74563"> </a></pre></div><a name="wp68400"> </a><p class="pBody">Once you have installed the tutorial bundle, the example source code is in the <code class="cCode"><</code><code class="cVariable">INSTALL</code><code class="cCode">>/j2eetutorial14/examples/</code> directory, with subdirectories for each of the technologies discussed in tutorial.</p><a name="wp68569"> </a><p class="pBody">This tutorial documents the J2EE 1.4 Application Server Developer Release. To build, deploy, and run the examples you need a copy of the J2EE 1.4 Application Server Developer Release and the Java 2 Software Development Kit, Standard Edition (J2SE<img src="images/tm.gif" border="0" alt="Trademarked"> SDK) 1.4.2_01 or higher. You download the J2EE 1.4 Application Server from:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative"><a href="http://java.sun.com/webservices/downloads/webservicespack.html" target="_blank"></a><a href="http://java.sun.com/j2ee/1.4/download.html#sdk" target="_blank">http://java.sun.com/j2ee/1.4/download.html#sdk</a><code class="cCode"> </code><a name="wp74668"> </a></pre></div><a name="wp68411"> </a><p class="pBody">and the J2SE 1.4 SDK from</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative"><a href="http://java.sun.com/j2se/1.4/" target="_blank">http://java.sun.com/j2se/1.4/</a><a name="wp68413"> </a></pre></div><a name="wp67375"> </a><h4 class="pHeading3">Building the Examples</h4><a name="wp74691"> </a><p class="pBody">Most of the tutorial examples are distributed with a configuration file for <code class="cCode">asant</code>, a portable build tool contained in the J2EE 1.4 Application Server, that is an extension of the Ant tool developed by the Apache Software Foundation (<code class="cCode">http://www.apache.org</code>). <code class="cCode">asant</code> contains additional tasks that interact with the J2EE 1.4 Application Server adminstration utility <code class="cCode">asadmin</code>. Directions for building the examples are provided in each chapter. </p><a name="wp74692"> </a><p class="pBody">In order to run the <code class="cCode">asant</code> scripts, you must configure your environment and properties files as follows:</p><div class="pSmartList1"><ul class="pSmartList1"><a name="wp74693"> </a><div class="pSmartList1"><li>Add <code class="cCode"><</code><code class="cVariable">JAVA_HOME</code><code class="cCode">>/bin</code> to the front of your path.</li></div><a name="wp74694"> </a><div class="pSmartList1"><li>Add <code class="cCode"><</code><code class="cVariable">J2EE_HOME</code><code class="cCode">>/bin</code> and <code class="cCode"><</code><code class="cVariable">J2EE_HOME</code><code class="cCode">>/share/bin</code> to the front of your path so that J2EE 1.4 Application Server scripts (<code class="cCode">asadmin</code>, <code class="cCode">asant</code>, <code class="cCode">deploytool</code>, and <code class="cCode">wscompile</code>) override other installations.</li></div><a name="wp74695"> </a><div class="pSmartList1"><li>Set the <code class="cCode">j2ee.home</code> property in the file <code class="cCode"><</code><code class="cVariable">INSTALL</code><code class="cCode">>/j2eetutorial14/examples/common/build.properties</code> to the location of your J2EE Application Server installation. The build process uses the <code class="cCode">j2ee.home</code> property to include the J2EE library archive, <code class="cCode"><</code><code class="cVariable">J2EE_HOME</code><code class="cCode">>/lib/j2ee.jar</code>, in the classpath. If you wish to use an IDE or the <code class="cCode">javac</code> compiler to build J2EE applications, you must add this JAR to your classpath. </li></div></ul></div><hr><a name="wp75453"> </a><p class="pNote">Note: On Windows, you must escape any backslashes in the <code class="cCode">j2ee.home</code> property with another backslash or use forward slashes as a path separator. So, if your J2EE 1.4 Application Server installation is <code class="cCode">C:\Sun\AppServer</code>, you must set <code class="cCode">j2ee.home</code> as follows:<br /><br /><code class="cCode">j2ee.home = C:\\Sun\\AppServer <br /><br /></code>or<br /><br /><code class="cCode">j2ee.home=C:/Sun/AppServer</code></p><hr><a name="wp67542"> </a><h4 class="pHeading3">Tutorial Example Directory Structure</h4><a name="wp67543"> </a><p class="pBody">To facilitate iterative development and keep application source separate from compiled files, the source code for the tutorial examples is stored in the following structure under each application directory:</p><div class="pSmartList1"><ul class="pSmartList1"><a name="wp67544"> </a><div class="pSmartList1"><li><code class="cCode">build.xml</code>--<code class="cCode">asant</code> build file</li></div><a name="wp67545"> </a><div class="pSmartList1"><li><code class="cCode">src</code>--Java source of servlets and JavaBeans components, and tag libraries</li></div><a name="wp67546"> </a><div class="pSmartList1"><li><code class="cCode">web</code>--JSP pages and HTML pages, tag files, images</li></div></ul></div><a name="wp67689"> </a><p class="pBody">The <code class="cCode">asant</code> build files (<code class="cCode">build.xml</code>) distributed with the examples contain targets to create a <code class="cCode">build</code> subdirectory and copy and compile files into that directory and perform administrative functions on the application server. Build properties and targets common to a particular technology are specified in the files<code class="cCode"> </code><code class="cCode"><</code><code class="cVariable">INSTALL</code><code class="cCode">>/j2eetutorial14/examples/</code><code class="cVariable">technology</code><code class="cCode">/common/build.properties </code>and <code class="cCode"><</code><code class="cVariable">INSTALL</code><code class="cCode">>/j2eetutorial14/examples/</code><code class="cVariable">technology</code><code class="cCode">/common/targets.xml</code>. </p><a name="wp74809"> </a><h2 class="pHeading1NoSplit">Further Information</h2><a name="wp74874"> </a><p class="pBody">For information on the tools distributed with the J2EE 1.4 Application Server, see the man pages at <code class="cCode"><a href="http://java.sun.com/j2ee/1.4/docs/relnotes/cliref/index.html" target="_blank">http://java.sun.com/j2ee/1.4/docs/relnotes/cliref/index.html</a></code>.</p><a name="wp74810"> </a><p class="pBody">This tutorial includes the basic information that you need to deploy applications on and administer the J2EE 1.4 Application Server. </p><a name="wp75502"> </a><p class="pBody">See the <em class="cEmphasis">J2EE 1.4 Application Server Developer's Guide</em> at <code class="cCode"><a href="http://java.sun.com/j2ee/1.4/docs/devguide/index.html" target="_blank">http://java.sun.com/j2ee/1.4/docs/devguide/index.html </a></code>for information about various developer features of the J2EE 1.4 Application Server.</p><a name="wp75491"> </a><p class="pBody">See the <em class="cEmphasis">J2EE 1.4 Application Server Administrator's Guide</em> at <code class="cCode"><a href="http://java.sun.com/j2ee/1.4/docs/adminguide/index.html" target="_blank">http://java.sun.com/j2ee/1.4/docs/adminguide/index.html</a></code> for information about administering the J2EE 1.4 Application Server.</p><a name="wp67693"> </a><h2 class="pHeading1NoSplit">How to Print This Tutorial</h2><a name="wp63750"> </a><p class="pBody">To print this tutorial, follow these steps: </p><div class="pSmartList1"><ol type="1" class="pSmartList1"><a name="wp63751"> </a><div class="pSmartList1"><li>Ensure that Adobe Acrobat Reader is installed on your system.</li></div><a name="wp63752"> </a><div class="pSmartList1"><li>Open the<a href="J2EETutorial.pdf" target="_blank"> PDF version</a> of this book.</li></div><a name="wp63753"> </a><div class="pSmartList1"><li>Click the printer icon in Adobe Acrobat Reader.</li></div></ol></div><a name="wp63754"> </a><h2 class="pHeading1NoSplit">Typographical Conventions</h2><a name="wp63772"> </a><p class="pBody"><a href="About.html#wp66319">Table 1-2</a> lists the typographical conventions used in this tutorial.</p><div align="left"><table border="1" id="wp66319"> <caption><a name="wp66319"> </a><div class="pTableTitle">Table 1-2 Typographical Conventions</div></caption> <tr align="center"> <th><a name="wp63757"> </a><div class="pCellHeading">Font Style</div></th> <th><a name="wp63759"> </a><div class="pCellHeading">Uses</div></th></tr> <tr align="left"> <td><a name="wp63761"> </a><div class="pCellBody"><em class="cEmphasis">italic</em></div></td> <td><a name="wp63763"> </a><div class="pCellBody">Emphasis, titles, first occurrence of terms</div></td></tr> <tr align="left"> <td><a name="wp63765"> </a><div class="pCellBody"><code class="cCode">monospace</code></div></td> <td><a name="wp63767"> </a><div class="pCellBody">URLs, code examples, file names, path names, command names, programming language keywords, properties</div></td></tr> <tr align="left"> <td><a name="wp63769"> </a><div class="pCellBody"><code class="cVariable">italic monospace</code></div></td> <td><a name="wp63771"> </a><div class="pCellBody">Variable names</div></td></tr> <tr align="left"> <td><a name="wp67774"> </a><div class="pCellBody"><code class="cCode"><</code><code class="cVariable">italic monospace</code><code class="cCode">></code></div></td> <td><a name="wp67776"> </a><div class="pCellBody">Variable path names, environment variables in paths</div></td></tr></table></div><p class="pBody"></p><a name="wp67846"> </a><p class="pBody">Menu selections indicated with the right-arrow character <span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>, for example, First<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Second, should be interpreted as: select the First menu, then choose Second from the First submenu. </p> </blockquote> <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider"> <table width="550" summary="layout" id="SummaryNotReq1"> <tr> <td align="left" valign="center"> <font size="-1"> <a href="http://java.sun.com/j2ee/1.4/download.html#tutorial" target="_blank">Download</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/faq.html" target="_blank">FAQ</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/history.html" target="_blank">History</a> </td> <td align="center" valign="center"><a accesskey="p" href="J2EETutorialFront2.html"><img id="LongDescNotReq1" src="images/PrevArrow.gif" width="26" height="26" border="0" alt="Prev" /></a><a accesskey="c" href="J2EETutorialFront.html"><img id="LongDescNotReq1" src="images/UpArrow.gif" width="26" height="26" border="0" alt="Home" /></a><a accesskey="n" href="Overview.html"><img id="LongDescNotReq3" src="images/NextArrow.gif" width="26" height="26" border="0" alt="Next" /></a><a accesskey="i" href="J2EETutorialIX.html"></a> </td> <td align="right" valign="center"> <font size="-1"> <a href="http://java.sun.com/j2ee/1.4/docs/api/index.html" target="_blank">API</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/search.html" target="_blank">Search</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/sendusmail.html" target="_blank">Feedback</a></font> </font> </td> </tr> </table> <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider"><p><font size="-1">All of the material in <em>The J2EE(TM) 1.4 Tutorial</em> is <a href="J2EETutorialFront2.html">copyright</a>-protected and may not be published in other workswithout express written permission from Sun Microsystems.</font> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -