By default, an EAR file contains the archives from the projects referenced by the Enterprise project. However, you can specify additional JAR files from projects that are not referenced (for example, JAR files containing helper classes), which will also be included when the EAR file is built.
The archive file is in a project in the workspace.
1. In the J2EE Explorer, select the Enterprise project.
2. From the context menu, choose Properties.
3. In the left pane, select Archive Build Info.
4. In the right pane, select the libraries to be packed into the EAR file.
5. Choose OK.