Follow these instructions to build, package, and deploy the simplegreeting example to the Enterprise Server using NetBeans IDE.
This procedure builds the application into the tut-install/examples/cdi/simplegreeting/build/web directory and deploys the contents of this directory to the Enterprise Server.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/examples/cdi/.
Select the simplegreeting folder.
Select the Open as Main Project checkbox.
Click Open Project Folder.
(Optional) To modify the Printer.java file, perform these steps:
In the Projects tab, right-click the simplegreeting project and select Deploy.