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 2.0 compatibility page.
To get the Java EE 6 SDK, go to http://java.sun.com/javaee/downloads/index.jsp.
To get NetBeans IDE go to http://www.netbeans.org/downloads/index.html.
Once you have all the necessary downloads, you must configure the tutorial bundle to reflect your environment.
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.
Select Tools -> Server Manager to open the Servers dialog.
Click Add Server.
Under Server, select GlassFish v3 and click Next.
Under Platform Location, browse to or enter the location of your GlassFish Server installation.
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.
Check for any updates to the tutorial by using the Update Center included with the Java EE 6 SDK.
Open the Update Center and check for any updates to the tutorial.
Open the Services tab in NetBeans IDE and expand Servers.
Right-click the GlassFish Server instance and select View Update Center to display the Update Tool.
Select Available Updates in the tree to display a list of updated packages.
Look for updates to the First Cup 2. 0 for Java EE 6 (javaee-firstcup-tutorial) package.
If there is an updated version of First Cup 2.0, select First Cup 2. 0 for Java EE 6 (javaee-firstcup-tutorial) and click Install.