src/jdk.jdeps/share/man/javap.1
author mbaesken
Fri, 13 Sep 2019 11:04:46 +0200
changeset 58173 6a30ad1cfeec
parent 55666 340d73f42b3c
child 58679 9c3209ff7550
permissions -rw-r--r--
8230901: missing ReleaseStringUTFChars in serviceability native code Reviewed-by: stuefe, sspitsyn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
     1
.\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     2
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     3
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     4
.\" This code is free software; you can redistribute it and/or modify it
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     5
.\" under the terms of the GNU General Public License version 2 only, as
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     6
.\" published by the Free Software Foundation.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     7
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     8
.\" This code is distributed in the hope that it will be useful, but WITHOUT
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     9
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    10
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    11
.\" version 2 for more details (a copy is included in the LICENSE file that
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    12
.\" accompanied this code).
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    13
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    14
.\" You should have received a copy of the GNU General Public License version
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    15
.\" 2 along with this work; if not, write to the Free Software Foundation,
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    16
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    17
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    18
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    19
.\" or visit www.oracle.com if you need additional information or have any
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    20
.\" questions.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    21
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    22
.\" Automatically generated by Pandoc 2.3.1
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    23
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    24
.TH "JAVAP" "1" "2018" "JDK 13" "JDK Commands"
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    25
.hy
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    26
.SH NAME
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    27
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    28
javap \- disassemble one or more class files
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    29
.SH SYNOPSIS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    30
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    31
\f[CB]javap\f[R] [\f[I]options\f[R]] \f[I]classes\f[R]...
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    32
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    33
.B \f[I]options\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    34
Specifies the command\-line options.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    35
See \f[B]Options for javap\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    36
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    37
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    38
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    39
.B \f[I]classes\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    40
Specifies one or more classes separated by spaces to be processed for
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    41
annotations.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    42
You can specify a class that can be found in the class path by its file
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    43
name, URL, or by its fully qualified class name.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    44
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    45
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    46
Examples:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    47
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    48
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    49
\f[CB]path/to/MyClass.class\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    50
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    51
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    52
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    53
\f[CB]jar:file:///path/to/MyJar.jar!/mypkg/MyClass.class\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    54
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    55
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    56
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    57
\f[CB]java.lang.Object\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    58
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    59
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    60
.SH DESCRIPTION
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    61
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    62
The \f[CB]javap\f[R] command disassembles one or more class files.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    63
The output depends on the options used.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    64
When no options are used, the \f[CB]javap\f[R] command prints the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    65
protected and public fields, and methods of the classes passed to it.
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    66
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    67
The \f[CB]javap\f[R] command isn\[aq]t multirelease JAR aware.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    68
Using the class path form of the command results in viewing the base
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    69
entry in all JAR files, multirelease or not.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    70
Using the URL form, you can use the URL form of an argument to specify a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    71
specific version of a class to be disassembled.
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    72
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    73
The \f[CB]javap\f[R] command prints its output to \f[CB]stdout\f[R].
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    74
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    75
\f[B]Note:\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    76
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    77
In tools that support \f[CB]\-\-\f[R] style options, the GNU\-style
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    78
options can use the equal sign (\f[CB]=\f[R]) instead of a white space to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    79
separate the name of an option from its value.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    80
.SH OPTIONS FOR JAVAP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    81
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    82
.B \f[CB]\-help\f[R], \f[CB]\-\-help\f[R] , or \f[CB]\-?\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    83
Prints a help message for the \f[CB]javap\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    84
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    85
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    86
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    87
.B \f[CB]\-version\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    88
Prints release information.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    89
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    90
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    91
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    92
.B \f[CB]\-verbose\f[R] or \f[CB]\-v\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    93
Prints additional information about the selected class.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    94
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    95
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    96
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    97
.B \f[CB]\-l\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    98
Prints line and local variable tables.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    99
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   100
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   101
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   102
.B \f[CB]\-public\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   103
Shows only public classes and members.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   104
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   105
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   106
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   107
.B \f[CB]\-protected\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   108
Shows only protected and public classes and members.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   109
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   110
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   111
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   112
.B \f[CB]\-package\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   113
Shows package/protected/public classes and members (default).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   114
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   115
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   116
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   117
.B \f[CB]\-private\f[R] or \f[CB]\-p\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   118
Shows all classes and members.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   119
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   120
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   121
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   122
.B \f[CB]\-c\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   123
Prints disassembled code, for example, the instructions that comprise
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   124
the Java bytecodes, for each of the methods in the class.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   125
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   126
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   127
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   128
.B \f[CB]\-s\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   129
Prints internal type signatures.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   130
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   131
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   132
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   133
.B \f[CB]\-sysinfo\f[R]
55666
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   134
Shows system information (path, size, date, SHA\-256 hash) of the class
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   135
being processed.
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   136
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   137
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   138
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   139
.B \f[CB]\-constants\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   140
Shows \f[CB]static\ final\f[R] constants.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   141
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   142
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   143
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   144
.B \f[CB]\-\-module\f[R] \f[I]module\f[R] or \f[CB]\-m\f[R] \f[I]module\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   145
Specifies the module containing classes to be disassembled.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   146
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   147
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   148
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   149
.B \f[CB]\-\-module\-path\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   150
Specifies where to find application modules.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   151
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   152
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   153
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   154
.B \f[CB]\-\-system\f[R] \f[I]jdk\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   155
Specifies where to find system modules.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   156
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   157
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   158
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   159
.B \f[CB]\-\-class\-path\f[R] \f[I]path\f[R], \f[CB]\-classpath\f[R] \f[I]path\f[R], or \f[CB]\-cp\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   160
Specifies the path that the \f[CB]javap\f[R] command uses to find user
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   161
class files.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   162
It overrides the default or the \f[CB]CLASSPATH\f[R] environment variable
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   163
when it\[aq]s set.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   164
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   165
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   166
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   167
.B \f[CB]\-bootclasspath\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   168
Overrides the location of bootstrap class files.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   169
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   170
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   171
.TP
55666
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   172
.B \f[CB]\-\-multi\-release\f[R] \f[I]version\f[R]
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   173
Specifies the version to select in multi\-release JAR files.
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   174
.RS
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   175
.RE
340d73f42b3c 8227602: Update nroff version of man pages
jjg
parents: 55140
diff changeset
   176
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   177
.B \f[CB]\-J\f[R]\f[I]option\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   178
Passes the specified option to the JVM.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   179
For example:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   180
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   181
.IP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   182
.nf
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   183
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   184
javap\ \-J\-version
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   185
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   186
javap\ \-J\-Djava.security.manager\ \-J\-Djava.security.policy=MyPolicy\ MyClassName
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   187
\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   188
.fi
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   189
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   190
See \f[I]Overview of Java Options\f[R] in \f[B]java\f[R].
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   191
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   192
.SH JAVAP EXAMPLE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   193
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   194
Compile the following \f[CB]HelloWorldFrame\f[R] class:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   195
.IP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   196
.nf
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   197
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   198
import\ java.awt.Graphics;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   199
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   200
import\ javax.swing.JFrame;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   201
import\ javax.swing.JPanel;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   202
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   203
public\ class\ HelloWorldFrame\ extends\ JFrame\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   204
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   205
\ \ \ String\ message\ =\ "Hello\ World!";
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   206
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   207
\ \ \ public\ HelloWorldFrame(){
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   208
\ \ \ \ \ \ \ \ setContentPane(new\ JPanel(){
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   209
\ \ \ \ \ \ \ \ \ \ \ \ \@Override
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   210
\ \ \ \ \ \ \ \ \ \ \ \ protected\ void\ paintComponent(Graphics\ g)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   211
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ g.drawString(message,\ 15,\ 30);
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   212
\ \ \ \ \ \ \ \ \ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   213
\ \ \ \ \ \ \ \ });
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   214
\ \ \ \ \ \ \ \ setSize(100,\ 100);
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   215
\ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   216
\ \ \ \ public\ static\ void\ main(String[]\ args)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   217
\ \ \ \ \ \ \ \ HelloWorldFrame\ frame\ =\ new\ HelloWorldFrame();
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   218
\ \ \ \ \ \ \ \ frame.setVisible(true);
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   219
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   220
\ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   221
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   222
}
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   223
\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   224
.fi
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   225
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   226
The output from the \f[CB]javap\ HelloWorldFrame.class\f[R] command yields
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   227
the following:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   228
.IP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   229
.nf
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   230
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   231
Compiled\ from\ "HelloWorldFrame.java"
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   232
public\ class\ HelloWorldFrame\ extends\ javax.swing.JFrame\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   233
\ \ java.lang.String\ message;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   234
\ \ public\ HelloWorldFrame();
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   235
\ \ public\ static\ void\ main(java.lang.String[]);
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   236
}
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   237
\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   238
.fi
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   239
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   240
The output from the \f[CB]javap\ \-c\ HelloWorldFrame.class\f[R] command
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   241
yields the following:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   242
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   243
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   244
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   245
Compiled\ from\ "HelloWorldFrame.java"
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   246
public\ class\ HelloWorldFrame\ extends\ javax.swing.JFrame\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   247
\ \ java.lang.String\ message;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   248
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   249
\ \ public\ HelloWorldFrame();
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   250
\ \ \ \ Code:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   251
\ \ \ \ \ \ \ 0:\ aload_0
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   252
\ \ \ \ \ \ \ 1:\ invokespecial\ #1\ \ \ \ \ \ \ \ //\ Method\ javax/swing/JFrame."<init>":()V
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   253
\ \ \ \ \ \ \ 4:\ aload_0
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   254
\ \ \ \ \ \ \ 5:\ ldc\ \ \ \ \ \ \ \ \ \ \ #2\ \ \ \ \ \ \ \ //\ String\ Hello\ World!
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   255
\ \ \ \ \ \ \ 7:\ putfield\ \ \ \ \ \ #3\ \ \ \ \ \ \ \ //\ Field\ message:Ljava/lang/String;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   256
\ \ \ \ \ \ 10:\ aload_0
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   257
\ \ \ \ \ \ 11:\ new\ \ \ \ \ \ \ \ \ \ \ #4\ \ \ \ \ \ \ \ //\ class\ HelloWorldFrame$1
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   258
\ \ \ \ \ \ 14:\ dup
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   259
\ \ \ \ \ \ 15:\ aload_0
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   260
\ \ \ \ \ \ 16:\ invokespecial\ #5\ \ \ \ \ \ \ \ //\ Method\ HelloWorldFrame$1."<init>":(LHelloWorldFrame;)V
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   261
\ \ \ \ \ \ 19:\ invokevirtual\ #6\ \ \ \ \ \ \ \ //\ Method\ setContentPane:(Ljava/awt/Container;)V
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   262
\ \ \ \ \ \ 22:\ aload_0
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   263
\ \ \ \ \ \ 23:\ bipush\ \ \ \ \ \ \ \ 100
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   264
\ \ \ \ \ \ 25:\ bipush\ \ \ \ \ \ \ \ 100
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   265
\ \ \ \ \ \ 27:\ invokevirtual\ #7\ \ \ \ \ \ \ \ //\ Method\ setSize:(II)V
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   266
\ \ \ \ \ \ 30:\ return
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   267
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   268
\ \ public\ static\ void\ main(java.lang.String[]);
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   269
\ \ \ \ Code:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   270
\ \ \ \ \ \ \ 0:\ new\ \ \ \ \ \ \ \ \ \ \ #8\ \ \ \ \ \ \ \ //\ class\ HelloWorldFrame
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   271
\ \ \ \ \ \ \ 3:\ dup
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   272
\ \ \ \ \ \ \ 4:\ invokespecial\ #9\ \ \ \ \ \ \ \ //\ Method\ "<init>":()V
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   273
\ \ \ \ \ \ \ 7:\ astore_1
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   274
\ \ \ \ \ \ \ 8:\ aload_1
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   275
\ \ \ \ \ \ \ 9:\ iconst_1
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   276
\ \ \ \ \ \ 10:\ invokevirtual\ #10\ \ \ \ \ \ \ //\ Method\ setVisible:(Z)V
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   277
\ \ \ \ \ \ 13:\ return
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   278
}
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   279
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   280
.fi