blob: 126e3e1b6450a1651c7c050aafbd06217b6c1e53 [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>
<link rel="stylesheet" type="text/css" href="../org.eclipse.platform.doc.user/book.css" />
<title>Importing class files to Web projects</title>
<script language="JavaScript">
function popup_window( url, id, width, height )
{
popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' );
popup.focus();
}
</script><script language="JavaScript" src="help/liveHelp.js"></script></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>
<p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>