Select libraries and other external resources
to bundle with the EAR file.
Set runtime options such as the application's default web page and target
application server.
Build the project
Set the project as the main project
and choose Run > Build
Main Project (F11) from the main menu or right-click the project node in the Projects window and choose Build.
Deploy and run the application
Right-click the enterprise application project and choose Run. Module
projects are compiled, new and changed files are copied from module projects'
build directories to the EAR's deployment directory. The EAR "client"
is triggered (e.g., a web application opens in the browser).
You can also right-click any of the application's module projects
and choose Run to deploy the individual module without deploying
other modules in the application.