Specifying dependent JAR files or modules
About this task
When you are specifying required JAR files or modules, you first specify the enterprise application (EAR) that your project is a part of. Typically, the project is referenced by one EAR project in the workspace. However, it is possible that you have multiple enterprise applications that contain a reference to the same module or utility JAR project. If so, then ensure that you give the JAR or module the same Uniform Resource Identifier (URI) in each application, so that the class path is valid for all applications.
It is also possible that your module is a standalone project and is not currently referenced by any enterprise application. In this case, since there is no enterprise application scope that is defined, you cannot use the Manifest editor to update the dependencies. To add the module to an enterprise application, see Adding modules to an enterprise application.
Procedure
- In the Enterprise Explorer view of the Java EE perspective, right-click your project file and select Properties. On the Properties page, select Deployment Assembly. If you have a deployment descriptor, you can also open Deployment Assembly by clicking the Manage Utility Jars link on the deployment descriptor page.
- Click OK.