blob: 719984b0b2985bf33b536714c721ac8f74a56826 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2012. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Creating a New Runnable JAR File
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
</head>
<body>
<h1>
Creating a New Runnable JAR File
</h1>
<p>
To create a new runnable JAR file in the workbench:
</p>
<ol>
<li>
From the menu bar's <strong>File</strong> menu, select <strong>Export</strong>.
</li>
<li>
Expand the <strong>Java</strong> node and select <strong>Runnable JAR file</strong>. Click <strong>Next</strong>.
</li>
<li>
In the <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.file.export(exportWizardId=org.eclipse.jdt.internal.ui.fatjarpackager.JarPackageWizard)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Opens the Runnable JAR export wizard">
<strong>Runnable JAR File Specification</strong></a> page, select a 'Java Application' launch configuration to use to create a runnable JAR.
</li>
<li>
In the <strong>Export destination</strong> field, either type or click <strong>Browse</strong> to select a location
for the JAR file.
</li>
<li>
Select an appropriate <a href="../reference/ref-export-runnable-jar.htm#library-handling"><strong>library handling</strong></a> strategy.
</li>
<li>
Optionally, you can also create an ANT script to quickly regenerate a previously created runnable JAR file.
</li>
</ol>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-export-runnable-jar.htm">Runnable JAR file exporter</a><br>
</p>
</body>
</html>