Choose File →New →Project...
Choose Java EE →Enterprise Application Project. Choose Next.
Specify the project name and location and choose Modify.
Choose the application modules to be contained in the application.
You can always add additional modules after the project is created. Choose OK.
Choose Finish.
You can now add bundled libraries, edit the application deployment descriptors or deploy the enterprise application on the application server.