blob: 66f11225dd221b98d56c318eadb4bb04f3ec8418 [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>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Importing class files to Web projects</title>
</head>
<body id="teimpclass"><a name="teimpclass"><!-- --></a>
<h1 class="topictitle1">Importing class files to Web projects</h1>
<div><div class="skipspace"> <p>You can use the Import wizard to add .class files to a Web project.
With the wizard, you can import the class files from the directory system
or from a JAR file or ZIP file. After you choose the class files that you
want to import, the wizard creates an <span class="uicontrol">imported_classes</span> folder,
imports the specified class files to that folder, and adds the folder to the
default classpath. You can navigate the <span class="uicontrol">imported_classes</span> folder
in the Project Explorer view.</p>
<p><img src="../images/nwin.gif" alt="For Windows" /> You can drag and drop class files from the Windows<sup>®</sup> Explorer
or desktop to the <span class="uicontrol">imported_classes</span> folder in the Project
Navigator view.</p>
<p>To import class files to a Web project using the wizard:</p>
</div>
<ol><li><span>Right-click your Web project and select <span class="menucascade"><span class="uicontrol">Import</span> &gt; <span class="uicontrol">Import Class Files ...</span></span> from the pop-up menu. The Import wizard opens.</span></li>
<li><span>Specify whether you want to <span class="uicontrol">Import from directory</span> or <span class="uicontrol">Import
from ZIP or JAR</span> and click <span class="uicontrol">Next</span>.</span></li>
<li><span>Depending on whether you are importing from a directory or JAR
file or ZIP file, in the <span class="uicontrol">Source</span> field enter the full
path of the directory, ZIP file, or JAR file that contains the .class files
that you want to import. You can click the <span class="uicontrol">Browse</span> button
to locate the directory or file on your system.</span></li>
<li><span>Select the class files that you want to import.</span></li>
<li><strong>Optional: </strong><span>If you have previously imported class files
and do not want to be warned about overwriting resources with the same names,
select <span class="uicontrol">Overwrite existing resources without warning</span>.</span></li>
<li><span>Click <span class="uicontrol">Finish</span>. The wizard imports the .class
files to the <span class="uicontrol">imported_classes</span> folder.</span></li>
</ol>
</div>
</body>
</html>