GlassFish Server Open Source Edition 3.0.1 is targeted as the build and runtime environment for the tutorial examples. To build, deploy, and run the examples, you need a copy of the GlassFish Server and, optionally, NetBeans IDE. To obtain the GlassFish Server, you must install the Java EE 6 Software Development Kit (SDK), which you can download from http://www.oracle.com/technetwork/java/javaee/downloads/index.html. Make sure you download the Java EE 6 SDK, not the Java EE 6 Web Profile SDK.
During the installation of the SDK, do the following.
Configure the GlassFish Server administration user name as admin, and specify no password. This is the default setting.
Accept the default port values for the Admin Port (4848) and the HTTP Port (8080).
Allow the installer to download and configure the Update Tool. If you access the Internet through a firewall, provide the proxy host and port.
This tutorial refers to as-install-parent, the directory where you install the GlassFish Server. For example, the default installation directory on Microsoft Windows is C:\glassfishv3, so as-install-parent is C:\glassfishv3. The GlassFish Server itself is installed in as-install, the glassfish directory under as-install-parent. So on Microsoft Windows, as-install is C:\glassfishv3\glassfish.
After you install the GlassFish Server, add the following directories to your PATH to avoid having to specify the full path when you use commands:
as-install-parent/bin
as-install/bin