The Java EE 6 Tutorial

ProcedureTo Build, Package, Deploy, and Run the Application in NetBeans IDE

  1. In NetBeans IDE, select File->Open Project.

  2. In the Open Project dialog box, navigate to:


    tut-install/examples/web
  3. Select the hello folder.

  4. Select the Open as Main Project check box.

  5. Click Open Project.

  6. In the Projects tab, right-click the hello project and select Run.

    This step compiles, assembles, and deploys the application and then brings up a web browser window displaying the following URL:


    http://localhost:8080/hello

    The output looks like this:


    Hello World!