Eliminating duplicate jar files
If you place multiple J2EE modules into a single ear file, eliminate the duplicate jar files as follows:
- Move a copy of each duplicate jar file to the top level of the ear
- Delete the duplicate jar files from the J2EE modules
- Ensure that the build path for each of the affected J2EE modules points to the jar files in the ear; specifically, do as follows for each of those J2EE modules:
- Right-click on the module from within the Project Explorer or J2EE view
- Select Edit Module Dependencies
- When the Module Dependencies dialog is displayed, select the jar files to access from the top level of the ear, then click Finish.
Related tasks
Setting up the J2EE run-time environment for EGL-generated code