The Java EE 6 Tutorial, Volume I

ProcedureRunning the Application in NetBeans IDE

To build, package, deploy, and run the JavaServer Faces helloWorld example using NetBeans IDE, follow these steps:

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

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


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

  4. Select the Open as Main Project check box.

  5. Click Open Project.

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

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


    http://localhost:8080/helloWorld

Example 4–1 Example Output of the helloWorld Application


Hello World!