Importing an enterprise application EAR file

Enterprise application projects are deployed into EAR files. You can import an enterprise application project by importing it from a deployed EAR file.

You can also choose to import utility JAR files as utility Java™ projects. You can also use the wizard to change the new project names for the EAR file and modules that will be imported.

To import an EAR file using the wizard, complete the following steps:

  1. In the Java EE perspective, click File > Import.
  2. Under Select an import source, click J2EE > EAR file and click Next.
  3. In the EAR file field, enter the location and name of the application client JAR file that you want to import.
  4. In the EAR project field, accept the default project name or type a new project name.
  5. In the Target runtime drop-down list, select the application server that you want to target for your development. This selection affects the run time settings by modifying the class path entries for the project. Click Next.
  6. Select any utility JAR files from the project that you want to import as utility projects.
  7. In the Module Root Location field, specify the root directory for all of the projects that will be imported or created during import, and click Next.
  8. On the EAR Module and Utility JAR Projects page, select the projects that you want to import with the EAR file. You can edit the new project name for each module and utility project to be imported.
  9. Click Finish to import the contents of the EAR file.

Related concepts
J2EE architecture
Enterprise application projects
Cyclical dependencies between Java EE modules
Related tasks
Creating an enterprise application project
Exporting an enterprise application into an EAR file
Correcting cyclical dependencies after an EAR is imported