| <!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> |
| Runnable JAR File Exporter |
| </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> |
| Runnable JAR File Exporter |
| </h1> |
| <p> |
| 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.svg" alt="Opens the Runnable JAR export wizard"> |
| <b>Runnable Jar Export</b></a> wizard allows you to create a runnable JAR file. |
| </p> |
| <h2> |
| Runnable JAR file specification |
| </h2> |
| <p> |
| Runnable JAR Specification Options: |
| </p> |
| <table border="1" cellspacing="0" cellpadding="5" summary="Runnable JAR specification options"> |
| <tbody> |
| <tr> |
| <th> |
| <p> |
| Option |
| </p> |
| </th> |
| <th> |
| <p> |
| Description |
| </p> |
| </th> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Launch configuration |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Select a 'Java Application' launch configuration to use to create a runnable JAR. |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Export destination |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Enter an external file system path and name for a JAR file (either new or existing). |
| Either type a valid file path in the field or click Browse to select a file via a dialog. |
| </p> |
| </td> |
| </tr> |
| <tr id="library-handling"> |
| <td align="left" valign="top"> |
| <p> |
| Library handling |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| You can select any of the following options: |
| </p> |
| <ul> |
| <li> |
| <strong>Extract required libraries into generated JAR </strong>: to inflate the referenced jar files and copy the classes into the generated jar |
| </li> |
| <li> |
| <strong>Package required libraries into generated JAR </strong>: to copy the referenced jar files as is into the generated jar |
| </li> |
| <li> |
| <strong>Copy required libraries into a sub-folder next to the generated JAR</strong> |
| </li> |
| </ul> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Save as ANT script |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| If you select this option, you can create an ant script describing the JAR file you are creating. |
| Either type and/or browse to select a path and name for this new script file. |
| </p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <p> |
| <h3 class="related">Related tasks</h3> |
| <p> |
| <a href="../tasks/tasks-37.htm">Creating Runnable JAR files</a> |
| </p> |
| <p> |
| <h3 class="related">Related references</h3> |
| <p> |
| <a href="../reference/ref-menu-file.htm">File actions</a> |
| </p> |
| |
| </body> |
| </html> |
| |