10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Application Server InstallationTips<br />

During the installation of the Application Server:<br />

■ Accept the default admin user name, and specify a password. <strong>The</strong> default user name is<br />

admin. Remember the password you specify (for example, adminadmin). You will need this<br />

user name and password.<br />

■ Select the Don't Prompt for Admin User Name and Password radio button.<br />

■ Note the HTTP port at which the server is installed. This tutorial assumes that you are<br />

accepting the default port of 8080. If 8080 is in use during installation and the installer<br />

chooses another port or if you decide to change it yourself, you will need to update the<br />

common build properties file (described in the next section) and the configuration files for<br />

some of the tutorial examples to reflect the correct port.<br />

This tutorial refers to the directory where you install the Application Server as as-install.For<br />

example, the default installation directory on Microsoft Windows is C:\Sun\AppServer,so<br />

as-install is C:\Sun\AppServer.<br />

After you install the Application Server, add the following directories to your PATH to avoid<br />

having to specify the full path when you use commands:<br />

as-install/bin<br />

as-install/lib/ant/bin<br />

NetBeans IDE<br />

<strong>The</strong> NetBeans integrated development environment (IDE) is a free, open-source IDE for<br />

developing <strong>Java</strong> applications, including enterprise applications. NetBeans IDE supports the <strong>Java</strong><br />

<strong>EE</strong> 5 platform. You can build, package, deploy, and run the tutorial examples from within<br />

NetBeans IDE.<br />

You can download NetBeans IDE from http://www.netbeans.org/.<br />

Refer to the <strong>Java</strong> <strong>EE</strong> <strong>Tutorial</strong> Compatibility Wiki page for information about the versions of<br />

NetBeans IDE with which the tutorial examples have been tested.<br />

Apache Ant<br />

Required <strong>Software</strong><br />

Ant is a <strong>Java</strong> technology-based build tool developed by the Apache <strong>Software</strong> Foundation<br />

(http://ant.apache.org/), and is used to build, package, and deploy the tutorial examples.<br />

Ant is included with the Application Server. To use the ant command, add<br />

as-install/lib/ant/bin to your PATH environment variable.<br />

Chapter 2 • Using the<strong>Tutorial</strong> Examples 67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!