From the menu options, choose Assemble → Make EAR. The File Chooser Window appears.
Specify a name and a location for the EAR file to be created.
Note
Each EAR file must have unique name.
The Deploy Tool generates EAR file.
Save your project.
Result
Once the EAR has been created successfully, it is inserted in the Deployer tab where you can continue the deployment process by Deploying a J2EE Application .