blob: ef10874ea27ea2383775fac397f7a6de39e5103a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
Creating a new JAR file
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<h1>
Creating a new JAR file
</h1>
<p>
To create a new JAR file from an AspectJ project:
</p>
<ol>
<li>
In the Package Explorer, you can optionally pre-select one or more Java elements to export. (These will be automatically selected in the <strong>JAR Package
Specification</strong> wizard page, described in Step 4.)
</li>
<li>
Either from the context menu or from the menu bar's <strong>File</strong> menu, select <strong>Export</strong>.
</li>
<li>
Select <strong>JAR file with AspectJ support</strong>, then click&nbsp;<strong>Next</strong>.
</li>
<li>
In the <strong>JAR Package Specification</strong> page, select the resources that you want to export in the <strong>Select the resources to
export&nbsp;</strong>field.
</li>
<li>
Select the appropriate check box to specify whether you want to <strong>Export generated class files and resources</strong> or <strong>Export java source files,
aspectj source files and
resources</strong>. <strong>Note</strong>: Selected resources are exported in both cases.
</li>
<li>
In the&nbsp;<strong>Select the export destination</strong> field, either type or click&nbsp;<strong>Browse</strong> to select a location
for the JAR file.
</li>
<li>
Select or clear the&nbsp;<strong>Compress the contents of the JAR file</strong> check box.
</li>
<li>
Select or clear the&nbsp;<strong>Overwrite existing files without warning</strong> check box. If you clear this check box,&nbsp;then you will be prompted
to confirm the replacement of each file that will be overwritten.
</li>
<li>
<strong>Note</strong>: The overwrite option is applied when writing the JAR file, the JAR description, and the manifest file.
</li>
<li>
You have two options:
<ul>
<li>
Click&nbsp;<strong>Finish</strong> to create the JAR file immediately.
</li>
<li>
Click&nbsp;<strong>Next</strong> to use the JAR Packaging Options page to set advanced options, create a JAR description, or change the default
manifest.
</li>
</ul>
</li>
</ol>
<p>
Please see the Java development user guide for more information on creating JAR files.
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="addoutjar.htm">Adding an outjar</a><br>
<a href="addinpath.htm">Adding an inpath</a><br>
<a href="addaspectpath.htm">Adding an aspectpath</a><br>
</p>
</body>
</html>