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:
- In the J2EE perspective, click . The Import window opens.
- Under Select an import source, click .
- Click Next.
- In the EAR file field, enter the location
and name of the application client JAR file that you want to import.
You can click the Browse button to select the
JAR file from the file system.
- In the EAR project field, accept the default
project name or type a new project name.
- 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, and complete the following steps:
- On the Enterprise Application Import page, select any utility
JAR files from the project that you want to import as utility projects.
- In the Module Root Location field, specify
the root directory for all of the projects that will be imported or created
during import.
- Click Next.
- On the EAR Module and Utility JAR Projects page of the wizard,
select the projects that you want to import with the EAR file. Also, you can
edit the new project name for each module and utility project to be imported.
Tip: The selection buttons on this page can help you select
the projects to import when you are importing for partial EAR development.
For example, if you are importing to a workspace where some projects are attached
to a repository and other projects are in binary form, these buttons help
you make the proper selections for which projects to import:
- Select New: Selects the projects that are currently
not in your workspace.
- Select All: Selects all projects for import.
- Deselect All: Clears all module and utility projects
for import.
- Click Finish to import the contents of the
EAR file.