-
Notifications
You must be signed in to change notification settings - Fork 66
/
ref-export-runnable-jar.htm
119 lines (117 loc) · 3.92 KB
/
ref-export-runnable-jar.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!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>