jdk/src/linux/doc/man/javap.1
author mikejwre
Wed, 09 Jun 2010 18:56:41 -0700
changeset 5634 895b66935810
parent 5506 202f599c92aa
child 5865 47da38a8c0f0
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
     1
." Copyright 2002-2006 Sun Microsystems, Inc.  All Rights Reserved.
2
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
."
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    18
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    19
." or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    20
." questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
."
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    22
.TH javap 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
javap \- The Java Class File Disassembler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    29
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
Disassembles class files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    35
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
javap [ \fP\f3options\fP\f3 ] class. . .
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
The \f3javap\fP command disassembles a class file. Its output depends on the options used. If no options are used, \f3javap\fP prints out the package, protected, and public fields and methods of the classes passed to it. \f3javap\fP prints its output to stdout. For example, compile the following class declaration:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
import java.awt.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
import java.applet.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
public class DocFooter extends Applet {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        String date;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        String email;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        public void init() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                resize(500,100);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                date = getParameter("LAST_UPDATED");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                email = getParameter("EMAIL");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        public void paint(Graphics g) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                g.drawString(date + " by ",100, 15);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                g.drawString(email,290,15);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
The output from \f3javap DocFooter\fP yields:
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
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
Compiled from DocFooter.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
public class DocFooter extends java.applet.Applet {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    java.lang.String date;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    java.lang.String email;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    public DocFooter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    public void init();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    public void paint(java.awt.Graphics);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
The output from \f3javap \-c DocFooter\fP yields:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
Compiled from DocFooter.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
public class DocFooter extends java.applet.Applet {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    java.lang.String date;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    java.lang.String email;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    public DocFooter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public void init();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    public void paint(java.awt.Graphics);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
Method DocFooter()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
   0 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
   1 invokespecial #1 <Method java.applet.Applet()>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
   4 return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
Method void init()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
   0 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
   1 sipush 500
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
   4 bipush 100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
   6 invokevirtual #2 <Method void resize(int, int)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
   9 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
  10 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
  11 ldc #3 <String "LAST_UPDATED">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
  13 invokevirtual #4 <Method java.lang.String getParameter(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
  16 putfield #5 <Field java.lang.String date>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
  19 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
  20 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
  21 ldc #6 <String "EMAIL">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
  23 invokevirtual #4 <Method java.lang.String getParameter(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
  26 putfield #7 <Field java.lang.String email>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
  29 return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
Method void paint(java.awt.Graphics)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
   0 aload_1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
   1 new #8 <Class java.lang.StringBuffer>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
   4 dup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
   5 invokespecial #9 <Method java.lang.StringBuffer()>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
   8 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
   9 getfield #5 <Field java.lang.String date>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
  12 invokevirtual #10 <Method java.lang.StringBuffer append(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
  15 ldc #11 <String " by ">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
  17 invokevirtual #10 <Method java.lang.StringBuffer append(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
  20 invokevirtual #12 <Method java.lang.String toString()>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
  23 bipush 100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  25 bipush 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
  27 invokevirtual #13 <Method void drawString(java.lang.String, int, int)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
  30 aload_1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
  31 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
  32 getfield #7 <Field java.lang.String email>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
  35 sipush 290
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
  38 bipush 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
  40 invokevirtual #13 <Method void drawString(java.lang.String, int, int)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
  43 return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   255
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
\-help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
Prints out help message for \f3javap\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
\-l 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
Prints out line and local variable tables. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
\-public 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
Shows only public classes and members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
\-protected 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
Shows only protected and public classes and members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
\-package 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
Shows only package, protected, and public classes and members. This is the default. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
\-private 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
Shows all classes and members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
\-Jflag 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
Pass \f2flag\fP directly to the runtime system. Some examples: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
javap \-J\-version
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
javap \-J\-Djava.security.manager \-J\-Djava.security.policy=MyPolicy MyClassName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
\-s 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
Prints internal type signatures. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
\-c 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
Prints out disassembled code, i.e., the instructions that comprise the Java bytecodes, for each of the methods in the class. These are documented in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
\f2Java Virtual Machine Specification\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
http://java.sun.com/docs/books/vmspec/. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
\-verbose 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
Prints stack size, number of \f2locals\fP and \f2args\fP for methods. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
\-classpath path 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
Specifies the path \f3javap\fP uses to look up classes. Overrides the default or the CLASSPATH environment variable if it is set. Directories are separated by colons. Thus the general format for \f2path\fP is: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
   .:<your_path>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.:/home/avh/classes:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
\-bootclasspath path 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
Specifies path from which to load bootstrap classes. By default, the bootstrap classes are the classes implementing the core Java platform located in \f2jre/lib/rt.jar\fP and several other jar files. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
\-extdirs dirs 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
Overrides location at which installed extensions are searched for. The default location for extensions is the value of \f2java.ext.dirs\fP. 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   327
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   328
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.SH "ENVIRONMENT VARIABLES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   334
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
CLASSPATH 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
Used to provide the system a path to user\-defined classes. Directories are separated by colons, for example, For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
.:/home/avh/classes:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   349
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.SH "SEE ALSO"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   357
javac(1), java(1), jdb(1), javah(1), javadoc(1)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361