The Java EE 5 Tutorial

Building and Running the Cursor Example Using NetBeans IDE

    Follow these instructions to build and run the Cursor example on your Application Server instance using the NetBeans IDE.

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

  2. In the Open Project dialog, navigate to the tut-install/javaeetutorial5/examples/stax/ directory.

  3. Select the cursor folder.

  4. Select the Open as Main Project check box.

  5. Click Open Project.

  6. In the Projects tab, right-click the cursor project and select Properties. The Project Properties dialog is displayed.

  7. Enter the following in the Arguments field:

    -x 1 BookCatalog.xml
  8. Click OK.

  9. Right-click the cursor project and select Run.