To build, package, and deploy the Coffee Break server using NetBeans IDE, follow these steps:
In NetBeans IDE, choose Open Project from the File menu.
In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/coffeebreak/.
Select the cb folder.
Select the Open as Main Project and Open Required Projects check boxes.
Click Open Project.
Right-click the cb project and choose Build.
Right-click the cb project and choose Undeploy and Deploy.
To build, package, and deploy the Coffee Break server using Ant, follow these steps:
In a terminal window, go to tut-install/javaeetutorial5/examples/coffeebreak/cb/.
Run ant. This task calls the default target, which compiles the server classes.
Make sure the Application Server is started.
Deploy the Coffee Break server: