| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <meta http-equiv="Content-Style-Type" content="text/css"> | |
| <meta name="GENERATOR" content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]"> | |
| <title> | |
| JAR file exporter | |
| </title> | |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> | |
| </head> | |
| <body> | |
| <h1> | |
| JAR file exporter | |
| </h1> | |
| <p> | |
| This wizard allows you to create a JAR file. | |
| </p> | |
| <h2> | |
| JAR package specification | |
| </h2> | |
| <p> | |
| JAR Specification Options: | |
| </p> | |
| <table border="1" cellspacing="0"> | |
| <tbody> | |
| <tr> | |
| <th> | |
| <p> | |
| Option | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Description | |
| </p> | |
| </th> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Select the resources to export | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| In the list, check or clear the boxes to specify exactly the files that you want to export to the JAR file. This list is initialized by the workbench selection. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Export generated class files and resources | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| If you want to export generated CLASS files and resources, select this option. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Export java source files and resources | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| If you want to export JAVA source files and resources, select this option. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Select the 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> | |
| <td align="left" valign="top"> | |
| <p> | |
| Options | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| You can select any of the following options: | |
| </p> | |
| <ul> | |
| <li> | |
| <strong>Compress the contents of the JAR file </strong>: to create a compressed JAR file | |
| </li> | |
| <li> | |
| <strong>Overwrite existing files without warning</strong> : if an existing file might be overwritten, you are prompted for confirmation. This option is applied to | |
| the JAR file, the JAR description, and the manifest file. | |
| </li> | |
| </ul> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <h2> | |
| JAR packaging options | |
| </h2> | |
| <p> | |
| JAR Options: | |
| </p> | |
| <table border="1" cellspacing="0"> | |
| <tbody> | |
| <tr> | |
| <th> | |
| <p> | |
| Option | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Description | |
| </p> | |
| </th> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Select options for handling problems | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| Choose whether to export classes with certain problems: | |
| </p> | |
| <ul> | |
| <li> | |
| Export class files with compile errors | |
| </li> | |
| <li> | |
| Export class files with compile warnings | |
| </li> | |
| </ul> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| Create source folder structure | |
| </td> | |
| <td> | |
| Selected this option if you want the source folder structure to be rebuilt in the JAR. This option is only enabled when source files but no class files are | |
| exported. | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| Build projects if not build automatically | |
| </td> | |
| <td> | |
| Select this option to force a rebuild before exporting. It is recommended to build be before exporting so the exported class files ar up to date. | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Save the description of this JAR in the workspace | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| If you select this option, you can create a file in the workbench describing the JAR file you are creating. Either type and/or browse to select a path and name for | |
| this new file. | |
| </p> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <h2> | |
| JAR manifest specification | |
| </h2> | |
| <p> | |
| JAR Manifest Specification Options (Available when class file are exported): | |
| </p> | |
| <table border="1" cellspacing="0"> | |
| <tbody> | |
| <tr> | |
| <th> | |
| <p> | |
| Option | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Description | |
| </p> | |
| </th> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Specify the manifest | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| Choose the source of the manifest file for this JAR file: | |
| </p> | |
| <ul> | |
| <li> | |
| Generate the manifest file (you can also choose either to save or reuse and save the new manifest file) | |
| </li> | |
| <li> | |
| Use existing manifest from workspace | |
| </li> | |
| </ul> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Seal contents | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| Choose which packages in the JAR file must be sealed: | |
| </p> | |
| <ul> | |
| <li> | |
| Seal the JAR: to seal the entire JAR file; click <strong>Details</strong> to exclude selectively | |
| </li> | |
| <li> | |
| Seal some packages; click <strong>Details</strong> to choose selectively | |
| </li> | |
| </ul> | |
| <em>Note: This option is only available if the manifest is generated.</em> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" valign="top"> | |
| <p> | |
| Select the class of the application entry point | |
| </p> | |
| </td> | |
| <td align="left" valign="top"> | |
| <p> | |
| Type or click <strong>Browse</strong> to select the main class for the JAR file, if desired. | |
| </p> | |
| <em>Note: This option is only available if the manifest is generated.</em> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <p> | |
| <img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br> | |
| <a href="../tasks/tasks-32.htm">Creating JAR Files</a> | |
| </p> | |
| <p> | |
| <img src="../images/ngrelr.gif" width=159 height=27 alt="Related reference"><br> | |
| <a href="../reference/ref-menu-file.htm">File actions</a> | |
| </p> | |
| <p> | |
| <a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" width="324" height= | |
| "14"></a> | |
| </p> | |
| </body> | |
| </html> | |