Java CAPS Domain and Runtime Installation

Adding the New Domain to NetBeans

After you create a new domain, you can add it to the Servers list on the NetBeans Services window so you can work with the new domain from NetBeans.

There are multiple options for registering the domain, including registering a remote domain, registering a local domain that is not located in the default appserver/domain directory, or registering a local domain that is located in the default directory. The following instructions describe how to add a local default domain. Selecting one of the other options will add another step to the wizard. Click the Help button to determine which option to use.

ProcedureTo Add the New Domain to NetBeans

Before You Begin

Complete the steps listed under Installing a Java CAPS Runtime on a New Domain.

  1. In NetBeans, open the Services window.

  2. Right-click on Servers, and select Add Server.

    The Add Server Instance Wizard appears.

  3. Select GlassFish V2 and enter a unique name for the domain.

  4. Click Next.

    The Platform Folder Location window appears.

  5. In the Platform Location field, enter the path to the application server home directory.

  6. Select Register Local Default Domain, and select the domain you just created.

  7. Click Next.

    The Domain Admin Login Info window appears.

  8. Enter the admin username and password, and then click Finish.

    The new domain appears in the Servers list.