Eliminating duplicate jar files

If you place multiple J2EE modules into a single ear file, eliminate the duplicate jar files as follows:

  1. Move a copy of each duplicate jar file to the top level of the ear

  2. Delete the duplicate jar files from the J2EE modules

  3. 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:

    1. Right-click on the module from within the Project Explorer or J2EE view

    2. Select Edit Module Dependencies

    3. 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