Sun Adapter for Oracle Tutorials

Building and Deploying the Project

The Build process compiles and validates the Project's Java files and creates the project EAR file.

This section contains the following topics:

Building the Project

You can build the project from the NeBeans IDE or from the Command Line. For this example we are building the project from the Java CAPS Deployment Editor in NetBeans. For more information on building a project, see Building an Application File

ProcedureBuild the Project

  1. From the Projects window, double-click your project's Deployment file.

    The Deployment Editor opens to your project.

  2. From the Deployment Editor toolbar, click the Build button.

  3. If there are any validation errors, they are displayed in the Validation window at the bottom of the NeBeans IDE. If there are any errors, make corrections to the project, save the project, and click the Build button again.

  4. When the build succeeds, save your project.

Deploying the Project from NetBeans

You can deploy a Java CAPS project to the Sun Java System Application Server (GlassFish) using NetBeans IDE, Admin Console, Enterprise Manager, or the Command Line. For more information on deploying projects see Deploying Java CAPS Projects.

For this example we will deploy the project from the Java CAPS Deployment Editor in NetBeans.


Note –

When you deploy your project from the NetBeans IDE, you cannot specify a server instance. Therefore, if the domain has multiple server instances, the application is deployed to all of the instances.


ProcedureDeploy the Project

  1. Open your project in the Deployment Editor.

  2. Ensure that the application server is running.

  3. In the toolbar of the Deployment Profile Editor, click Deploy.

Next Steps

For your next step, see Running the Project.