Your First Cup: An Introduction to the Java EE Platform

Previous
Next

1.2 Requirements for This Tutorial: A Checklist

To complete this tutorial, you need to:

  • Get the Java EE 7 Software Development Kit Update 1

  • 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 (http://java.net/projects/firstcup/pages/FirstCupCompatibility).

1.2.1 Getting the Java EE 7 SDK

To get the Java EE 7 SDK Update 1, go to http://www.oracle.com/technetwork/java/javaee/downloads/. Download and install the SDK. The location where you install it is typically glassfish4 in your home directory, but you can change this.

The tutorial is installed in the docs/firstcup directory of your SDK installation.

1.2.2 Getting NetBeans IDE

To get NetBeans IDE, go to https://netbeans.org/downloads/ and download the Java EE distribution. Install this distribution.

1.2.3 Configuring Your Environment

Once you have all the necessary downloads, you must configure NetBeans IDE and get the latest tutorial updates.

1.2.3.1 Add GlassFish Server as a Server in NetBeans IDE

To run this tutorial 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, select Servers.

  2. In the Servers dialog, click Add Server.

  3. Under Choose Server, select GlassFish Server and click Next.

  4. Under Server Location, browse to or enter the location of your GlassFish Server installation.

  5. Click Next.

  6. Under Domain Location, select the default domain, domain1.

  7. Click Finish.

1.2.4 Getting the Latest Updates to the Tutorial

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

1.2.4.1 Update the Tutorial Through the Update Center

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

  1. In NetBeans IDE, select the Services tab and expand the Servers node.

  2. Right-click the GlassFish Server instance and select View Domain Update Center to display the Update Tool.

  3. In the tree, select Available Updates to display a list of updated packages.

  4. Look for updates to the First Cup for Java EE 7 (javaee-firstcup-tutorial) package.

  5. If there is an updated version, select First Cup for Java EE 7 (javaee-firstcup-tutorial) and click Install.

Previous
Next