Document Information


1.  Introduction

Goals of This Tutorial

2.  Understanding Java Platform, Enterprise Edition

3.  Creating Your First Java EE Application

4.  Creating Your Second Web Application

5.  Next Steps


Requirements for This Tutorial

A Checklist

To complete this tutorial, you need to:

  • Get the Java EE 6 Software Development Kit.

  • Get NetBeans IDE and all necessary plugins.

  • Configure your environment.

  • Get the latest updates to the tutorial bundle.

For up-to-the-minute information on which versions of the required software are compatible with this tutorial, see the First Cup compatibility page.

Getting the Java EE 6 SDK

To get the Java EE 6 SDK, go to

Getting NetBeans IDE

To get NetBeans IDE, go to, and download the Java EE distribution.

Configuring Your Environment

Once you have all the necessary downloads, you must configure the tutorial bundle to reflect your environment.

Add GlassFish Server as a Server in NetBeans IDE

To run the tutorial examples in NetBeans IDE, you must register your GlassFish Server installation as a NetBeans server instance. Follow these instructions to register the GlassFish Server in NetBeans IDE.

  1. From the Tools menu, choose Servers.

    The Servers dialog opens.

  2. Click Add Server.
  3. Under Server, select GlassFish Server 3+ and click Next.
  4. Under Platform Location, browse to or enter the location of your GlassFish Server installation.
  5. Click Next.
  6. Under Domain, use the drop-down list to select an existing domain, type in the path to the domain directly in the field, or type the name of a new domain to create.

    Normally, you will select the default domain, domain1.

  7. Click Finish.

Getting the Latest Updates to the Tutorial

Check for any updates to the tutorial by using the Update Center included with the Java EE 6 SDK.

Update the Tutorial Through the Update Center

Open the Update Center and check for any updates to the tutorial.

  1. Open the Services tab in NetBeans IDE and expand Servers.
  2. Right-click the GlassFish Server instance and select View Update Center to display the Update Tool.
  3. Select Available Updates in the tree to display a list of updated packages.
  4. Look for updates to the First Cup for Java EE 6 (javaee-firstcup-tutorial) package.
  5. If there is an updated version of First Cup, select First Cup 2.1 for Java EE 6 (javaee-firstcup-tutorial) and click Install.