blob: f07eba2f24c62a731a97fd189be7ba57b907be67 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2009" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Importing an enterprise application EAR file" />
<meta name="abstract" content="Enterprise application projects are deployed into EAR files. You can import an enterprise application project by importing it from a deployed EAR file." />
<meta name="description" content="Enterprise application projects are deployed into EAR files. You can import an enterprise application project by importing it from a deployed EAR file." />
<meta content="EAR, files, importing, enterprise applications, projects" name="DC.subject" />
<meta content="EAR, files, importing, enterprise applications, projects" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/tjear.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tjexpear.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/cjarch.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/cjearproj.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tjcircleb.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/cjcircle.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tjimpear" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Importing an enterprise application EAR file</title>
</head>
<body id="tjimpear"><a name="tjimpear"><!-- --></a>
<h1 class="id_title">Importing an enterprise application EAR file</h1>
<div class="id_taskbody"><p class="id_shortdesc">Enterprise application projects are
deployed into EAR files. You can import an enterprise application project
by importing it from a deployed EAR file.</p>
<div class="id_context"> <p class="anchor_topictop" />
<p>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.</p>
<p>To import an EAR file using the wizard,
complete the following steps:</p>
</div>
<ol class="id_steps">
<li class="stepexpand"><span>In the Java EE perspective, click <span class="menucascade"><span class="uicontrol">File</span>
&gt; <span class="uicontrol">Import</span></span>.</span></li>
<li class="stepexpand"><span>Under <span class="uicontrol">Select an import source</span>, click <span class="menucascade">
<span class="uicontrol">J2EE</span> &gt; <span class="uicontrol">EAR file</span></span> and
click <span class="uicontrol">Next</span>.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">EAR file</span> field, enter the location
and name of the application client JAR file that you want to import. </span>
</li>
<li class="stepexpand"><span>In the <span class="uicontrol">EAR project</span> field, accept the default
project name or type a new project name. </span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Target runtime</span> drop-down list, select
the application server that you want to target for your development.</span>
This selection affects the run time settings by modifying the class
path entries for the project. Click <span class="uicontrol">Next</span>.</li>
<li class="stepexpand"><span>Select any utility JAR files from the project that you want to
import as utility projects.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Module Root Location</span> field, specify
the root directory for all of the projects that will be imported or created
during import, and click <span class="uicontrol">Next</span>.</span></li>
<li class="stepexpand"><span>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.</span> </li>
<li class="stepexpand"><span>Click <span class="uicontrol">Finish</span> to import the contents of the
EAR file.</span></li>
</ol>
<div class="id_postreq"><p class="anchor_topicbottom" />
</div>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cjarch.html" title="The Java 2 Platform, Enterprise Edition (J2EE) provides a standard for developing multitier, enterprise applications.">J2EE architecture</a></div>
<div><a href="../topics/cjearproj.html" title="An enterprise application project ties together the resources that are required to deploy a J2EE enterprise application.">Enterprise application projects</a></div>
<div><a href="../topics/cjcircle.html" title="A cyclical dependency between two or more modules in an enterprise application most commonly occurs when projects are imported from outside the Workbench.">Cyclical dependencies between Java EE modules</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/tjear.html" title="Using the wizard to create an enterprise application project allows you to package many web applications and modules in a project and deploy these modules as a J2EE enterprise application.">Creating an enterprise application project</a></div>
<div><a href="../topics/tjexpear.html" title="Enterprise applications are deployed in the form of an EAR file. Use the Export wizard to export an enterprise application project into an EAR file for deployment.">Exporting an enterprise application into an EAR file</a></div>
<div><a href="../topics/tjcircleb.html" title="You can resolve cyclical dependencies after an EAR is imported.">Correcting cyclical dependencies after an EAR is imported</a></div>
</div>
</div>
</body>
</html>