The Java EE 6 Tutorial

Java EE 6 Tutorial Component

The tutorial example source is contained in the tutorial component. To obtain the tutorial component, use the Update Tool.

If you are behind a firewall that prevents you from using the Update Tool to obtain components, you can obtain the tutorial from the web site.

ProcedureTo Obtain the Tutorial Component Using the Update Tool

  1. Start the Update Tool.

    • From the command line, type the command updatetool.

    • On a Windows system, select Start -> All Programs -> Java EE 6 SDK -> Start Update Tool.

  2. Expand the GlassFish Server Open Source Edition node.

  3. Select the Available Add-ons node.

  4. From the list, select the Java EE 6 Tutorial check box.

  5. Click Install.

  6. Accept the license agreement.

    After installation, the Java EE 6 Tutorial appears in the list of installed components. The tool is installed in the as-install/docs/javaee-tutorial directory. This directory contains two subdirectories: docs and examples. The examples directory contains subdirectories for each of the technologies discussed in the tutorial.

Next Steps

Updates to the Java EE 6 Tutorial are published periodically. For details on obtaining these updates, see Getting the Latest Updates to the Tutorial.

ProcedureTo Obtain the Tutorial Component from the Web Site

Follow these steps exactly. If you place the tutorial in the wrong location, the examples will not work.

  1. Open the following URL in a web browser:

  2. Click the Documents & Files link in the left sidebar.

  3. In the table on the Documents & Files page, locate the latest stable version of the Java EE 6 Tutorial zip file.

  4. Right-click the zip file name and save it to your system.

  5. Copy or move the zip file into the GlassFish SDK directory.

    By default, this directory is named glassfishv3.

  6. Unzip the zip file.

    The tutorial unzips into the directory glassfish/docs/javaee-tutorial.