jdk/src/linux/doc/man/pack200.1
author tbell
Mon, 04 May 2009 18:28:26 -0700
changeset 2692 345bc8d65b19
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6837214: Update JDK7 man pages Reviewed-by: darcy, bpatel, tbell Contributed-by: jacob.royal@sun.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
." Copyright 2004-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." have any questions.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    21
."
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    22
.TH pack200 1 "04 May 2009"
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    23
." Generated from HTML by html2man (author: Eric Armstrong)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    26
.SH "Name"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
pack200 \- JAR Packing tool
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
\f4pack200\fP\f2 [ \fP\f2options\fP ] \f2output\-file\fP \f2JAR\-file\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
Options may be in any order. The last option on the command line or in a properties file supersedes all previously specified options.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    42
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
options 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
Command\-line options. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
output\-file 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
Name of the output file. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
JAR\-file 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
Name of the input file. 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    52
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    53
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
The \f2pack200\fP tool is a Java application that transforms a JAR file into a compressed \f2pack200\fP file using the Java \f2gzip\fP compressor. The \f2pack200\fP files are highly compressed files that can be directly deployed, saving bandwidth and reducing download time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
The \f2pack200\fP tool uses several options to fine\-tune and set the compression engine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
Typical usage:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    69
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
\f2% pack200 myarchive.pack.gz myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    75
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
In this example, \f2myarchive.pack.gz\fP is produced using the default \f2pack200\fP settings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
\f4\-r \-\-repack\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
Produces a JAR file by packing the file \f2myarchive.jar\fP and unpacking it. The resulting file can be used as an input to the \f2jarsigner(1)\fP tool.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
\f2% pack200 \-\-repack myarchive\-packer.jar myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
\f2% pack200 \-\-repack myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
\f4\-g \-\-no\-gzip\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
Produces a \f2pack200\fP file. With this option a suitable compressor must be used, and the target system must use a corresponding decompresser.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
\f2% pack200 \-\-no\-gzip myarchive.pack myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
\f4\-G \-\-strip\-debug\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
Strips attributes used for debugging from the output. These include \f2SourceFile\fP, \f2LineNumberTable\fP, \f2LocalVariableTable\fP and \f2LocalVariableTypeTable\fP. Removing these attributes reduces the size of both downloads and installations but reduces the usefulness of debuggers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
\f4\-O \-\-no\-keep\-file\-order\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
The packer will reorder and transmit all elements. Additionally, the packer may remove JAR directory names. This will reduce the download size; however, certain JAR file optimizations, such as indexing, may not work correctly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
\f4\-Svalue \-\-segment\-limit=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
The value is the estimated target size N (in bytes) of each archive segment. If a single input file requires
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
more than N bytes, it will be given its own archive segment. As a special case, a value of \f2\-1\fP will produce a single large segment with all input files, while a value of \f20\fP will produce one segment for each class. Larger archive segments result in less fragmentation and better compression, but processing them requires more memory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
The size of each segment is estimated by counting the size of each input file to be transmitted in the segment, along with the size of its name and other transmitted properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
The default is \f21000000\fP (a million bytes). This allows input JAR files of moderate size to be transmitted in one segment. It also puts a limit on memory requirements for packers and unpackers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
A 10MB JAR packed without this limit will typically pack about 10% smaller, but the packer may require a larger Java heap (about ten times the segment limit).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
\f4\-Evalue \-\-effort=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
If the value is set to a single decimal digit, the packer will use the indicated amount of effort in compressing the archive. Level \f21\fP may produce somewhat larger size and faster compression speed, while level \f29\fP will take much longer but may produce better compression. The special value \f20\fP instructs the packer to copy through the original JAR file directly with no compression. The JSR 200 standard requires any unpacker to understand this special case as a pass\-through of the entire archive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
The default is \f25\fP, investing a modest amount of time to produce reasonable compression.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
\f4\-Hvalue \-\-deflate\-hint=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
Overrides the default, which preserves the input information, but may cause the transmitted archive to be larger. The possible values are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   183
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
true 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
false 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
In either case, the packer will set the deflation hint accordingly in the output archive, and will not transmit the individual deflation hints of archive elements. 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   189
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   190
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   192
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
keep 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
Preserve deflation hints observed in the input JAR. (This is the default.) 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   196
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   197
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
\f4\-mvalue \-\-modification\-time=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
The possible values are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   209
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
latest 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
The packer will attempt to determine the latest modification time, among all the available entries in the original archive, or the latest modification time of all the available entries in that segment. This single value will be transmitted as part of the segment and applied to all the entries in each segment. This can marginally decrease the transmitted size of the archive at the expense of setting all installed files to a single date. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
keep 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
Preserves modification times observed in the input JAR. (This is the default.) 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   216
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   217
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
\f4\-Pfile \-\-pass\-file=\fP\f2file\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
Indicates that a file should be passed through bytewise with no compression. By repeating the option, multiple files may be specified. There is no pathname transformation, except that the system file separator is replaced by the JAR file separator "\f2/\fP". The resulting file names must match exactly as strings with their occurrences in the JAR file. If file is a directory name, all files under that directory will be passed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
\f4\-Uaction \-\-unknown\-attribute=\fP\f2action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
Overrides the default behavior; i.e., the classfile containing the unknown attribute will be passed through with the specified action. The possible values for actions are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   239
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
error 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
The \f2pack200\fP operation as a whole will fail with a suitable explanation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
strip 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
The attribute will be dropped. Note: Removing the required VM attributes may cause Class Loader failures. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
pass 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
Upon encountering this attribute, the entire class will be transmitted as though it is a resource. 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   249
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   250
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
\f4\-Cattribute\-name=\fP\f2layout\fP \f3\-\-class\-attribute=\fP\f2attribute\-name=action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.br
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   256
\f4\-Fattribute\-name=\fP\f2layout\fP \f3\-\-field\-attribute=\fP\f2attribute\-name=action\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.br
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   258
\f4\-Mattribute\-name=\fP\f2layout\fP \f3\-\-method\-attribute=\fP\f2attribute\-name=action\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.br
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   260
\f4\-Dattribute\-name=\fP\f2layout\fP \f3\-\-code\-attribute=\fP\f2attribute\-name=action\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
With the above four options, the attribute layout can be specified for a class entity, such as Class attribute, Field attribute, Method attribute, and Code attribute. The attribute\-name is the name of the attribute for which the layout or action is being defined. The possible values for action are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   268
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
some\-layout\-string 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
The layout language is defined in the JSR 200 specification. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
Example: \f2\-\-class\-attribute=SourceFile=RUH\fP  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
error 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
Upon encountering this attribute, the pack200 operation will fail with a suitable explanation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
strip 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
Upon encountering this attribute, the attribute will be removed from the output. Note: removing VM\-required attributes may cause Class Loader failures. 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   280
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   281
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
Example: \f2\-\-class\-attribute=CompilationID=pass\fP will cause the class file containing this attribute to be passed through without further action by the packer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
\f4\-f\fP\f2 \fP\f2pack.properties\fP \f3\-\-config\-file=\fP\f2pack.properties\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
A configuration file, containing Java properties to initialize the packer, may be specified on the command line.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
\f2% pack200 \-f pack.properties myarchive.pack.gz myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
\f2% more pack.properties\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
\f2# Generic properties for the packer.\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
\f2modification.time=latest\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
\f2deflate.hint=false\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
\f2keep.file.order=false\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
\f2# This option will cause the files bearing new attributes to\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
\f2# be reported as an error rather than passed uncompressed.\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
\f2unknown.attribute=error\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
\f2# Change the segment limit to be unlimited.\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
\f2segment.limit=\-1\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
\f4\-v \-\-verbose\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
Outputs minimal messages. Multiple specification of this option will output more verbose messages.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
\f4\-q \-\-quiet\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
Specifies quiet operation with no messages.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
\f4\-lfilename \-\-log\-file=\fP\f2filename\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
Specifies a log file to output messages.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
\f4\-Joption\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
Passes option to the Java launcher called by \f2pack200\fP. For example, \f2\-J\-Xms48m\fP sets the startup memory to 48 megabytes. Although it does not begin with \f2\-X\fP, it is not a standard option of \f2pack200\fP. It is a common convention for \f2\-J\fP to pass options to the underlying VM executing applications written in Java.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.SH "EXIT STATUS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
The following exit values are returned:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
\f2\ 0\fP for successful completion;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
\f2>0\fP if an error occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
.SH "SEE ALSO"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   389
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   390
unpack200(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   392
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   393
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   394
\f2Java SE Documentation\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   395
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   396
http://java.sun.com/javase/6/docs/index.html 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   398
o
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
\f2Java Deployment Guide \- Pack200\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment\-guide/pack200.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   404
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   405
jar(1) \- Java Archive Tool 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   407
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   408
jarsigner(1) \- JAR Signer tool 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   409
.TP 2
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   410
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   411
\f2attributes(5)\fP man page 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
.SH "NOTES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
This command should not be confused with \f2pack(1)\fP. They are distinctly separate products.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   423
The Java SE API Specification provided with the JDK is the superseding authority, in case of discrepancies.
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   424
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   425
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427