8200198: javah man pages were not removed by JDK-8191054
Reviewed-by: erikj, alanb
This commit is contained in:
parent
01e9695dbd
commit
ac1953d7cc
@ -1,24 +0,0 @@
|
||||
." Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
."
|
||||
." This code is free software; you can redistribute it and/or modify it
|
||||
." under the terms of the GNU General Public License version 2 only, as
|
||||
." published by the Free Software Foundation.
|
||||
."
|
||||
." This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
." version 2 for more details (a copy is included in the LICENSE file that
|
||||
." accompanied this code).
|
||||
."
|
||||
." You should have received a copy of the GNU General Public License version
|
||||
." 2 along with this work; if not, write to the Free Software Foundation,
|
||||
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
."
|
||||
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
." or visit www.oracle.com if you need additional information or have any
|
||||
." questions.
|
||||
."
|
||||
.TH javah 1 "07 May 2011"
|
||||
|
||||
.LP
|
@ -3772,17 +3772,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jar(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1353,9 +1353,6 @@ java(1)
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javadoc(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
|
@ -2978,9 +2978,6 @@ java(1)
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.SH RELATED\ DOCUMENTS
|
||||
.TP 0.2i
|
||||
|
@ -1,158 +0,0 @@
|
||||
'\" t
|
||||
.\" Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
.\"
|
||||
.\" This code is free software; you can redistribute it and/or modify it
|
||||
.\" under the terms of the GNU General Public License version 2 only, as
|
||||
.\" published by the Free Software Foundation.
|
||||
.\"
|
||||
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
.\" version 2 for more details (a copy is included in the LICENSE file that
|
||||
.\" accompanied this code).
|
||||
.\"
|
||||
.\" You should have received a copy of the GNU General Public License version
|
||||
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
||||
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
.\" or visit www.oracle.com if you need additional information or have any
|
||||
.\" questions.
|
||||
.\"
|
||||
.\" Arch: generic
|
||||
.\" Software: JDK 8
|
||||
.\" Date: 21 November 2013
|
||||
.\" SectDesc: Basic Tools
|
||||
.\" Title: javah.1
|
||||
.\"
|
||||
.if n .pl 99999
|
||||
.TH javah 1 "21 November 2013" "JDK 8" "Basic Tools"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.\" http://bugs.debian.org/507673
|
||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * MAIN CONTENT STARTS HERE *
|
||||
.\" -----------------------------------------------------------------
|
||||
|
||||
.SH NAME
|
||||
javah \- Generates C header and source files from a Java class\&.
|
||||
.SH SYNOPSIS
|
||||
.sp
|
||||
.nf
|
||||
|
||||
\fBjavah\fR [ \fIoptions\fR ] f\fIully\-qualified\-class\-name \&.\&.\&.\fR
|
||||
.fi
|
||||
.sp
|
||||
.TP
|
||||
\fIoptions\fR
|
||||
The command-line options\&. See Options\&.
|
||||
.TP
|
||||
\fIfully-qualified-class-name\fR
|
||||
The fully qualified location of the classes to be converted to C header and source files\&.
|
||||
.SH DESCRIPTION
|
||||
The \f3javah\fR command generates C header and source files that are needed to implement native methods\&. The generated header and source files are used by C programs to reference an object\&'s instance variables from native source code\&. The \f3\&.h\fR file contains a \f3struct\fR definition with a layout that parallels the layout of the corresponding class\&. The fields in the \f3struct\fR correspond to instance variables in the class\&.
|
||||
.PP
|
||||
The name of the header file and the structure declared within it are derived from the name of the class\&. When the class passed to the \f3javah\fR command is inside a package, the package name is added to the beginning of both the header file name and the structure name\&. Underscores (_) are used as name delimiters\&.
|
||||
.PP
|
||||
By default the \f3javah\fR command creates a header file for each class listed on the command line and puts the files in the current directory\&. Use the \f3-stubs\fR option to create source files\&. Use the \f3-o\fR option to concatenate the results for all listed classes into a single file\&.
|
||||
.PP
|
||||
The Java Native Interface (JNI) does not require header information or stub files\&. The \f3javah\fR command can still be used to generate native method function prototypes needed for JNI-style native methods\&. The \f3javah\fR command produces JNI-style output by default and places the result in the \f3\&.h\fR file\&.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
-o \fIoutputfile\fR
|
||||
.br
|
||||
Concatenates the resulting header or source files for all the classes listed on the command line into an output file\&. Only one of \f3-o\fR or \f3-d\fR can be used\&.
|
||||
.TP
|
||||
-d \fIdirectory\fR
|
||||
.br
|
||||
Sets the directory where the \f3javah\fR command saves the header files or the stub files\&. Only one of \f3-d\fR or \f3-o\fR can be used\&.
|
||||
.TP
|
||||
-stubs
|
||||
.br
|
||||
Causes the \f3javah\fR command to generate C declarations from the Java object file\&.
|
||||
.TP
|
||||
-verbose
|
||||
.br
|
||||
Indicates verbose output and causes the \f3javah\fR command to print a message to \f3stdout\fR about the status of the generated files\&.
|
||||
.TP
|
||||
-help
|
||||
.br
|
||||
Prints a help message for \f3javah\fR usage\&.
|
||||
.TP
|
||||
-version
|
||||
.br
|
||||
Prints \f3javah\fR command release information\&.
|
||||
.TP
|
||||
-jni
|
||||
.br
|
||||
Causes the \f3javah\fR command to create an output file containing JNI-style native method function prototypes\&. This is the default output; use of \f3-jni\fR is optional\&.
|
||||
.TP
|
||||
-classpath \fIpath\fR
|
||||
.br
|
||||
Specifies the path the \f3javah\fR command uses to look up classes\&. Overrides the default or the \f3CLASSPATH\fR environment variable when it is set\&. Directories are separated by colons on Oracle Solaris and semicolons on Windows\&. The general format for path is:
|
||||
|
||||
\fIOracle Solaris\fR:
|
||||
|
||||
\&.:\fIyour-path\fR
|
||||
|
||||
Example: \f3\&.:/home/avh/classes:/usr/local/java/classes\fR
|
||||
|
||||
\fIWindows\fR:
|
||||
|
||||
\&.;\fIyour-path\fR
|
||||
|
||||
Example: \f3\&.;C:\eusers\edac\eclasses;C:\etools\ejava\eclasses\fR
|
||||
|
||||
As a special convenience, a class path element that contains a base name of * is considered equivalent to specifying a list of all the files in the directory with the extension \f3\&.jar\fR or \f3\&.JAR\fR\&.
|
||||
|
||||
For example, if directory \f3mydir\fR contains \f3a\&.jar\fR and \f3b\&.JAR\fR, then the class path element \f3mydir/*\fR is expanded to a \f3A\fR\f3\&.jar:b\&.JAR\fR, except that the order of jar files is unspecified\&. All JAR files in the specified directory, including hidden ones, are included in the list\&. A class path entry that consists of * expands to a list of all the JAR files in the current directory\&. The \f3CLASSPATH\fR environment variable, where defined, is similarly expanded\&. Any class path wild card expansion occurs before the Java Virtual Machine (JVM) is started\&. A Java program will never see unexpanded wild cards except by querying the environment\&. For example, by calling \f3System\&.getenv("CLASSPATH")\fR\&.
|
||||
.TP
|
||||
-bootclasspath \fIpath\fR
|
||||
.br
|
||||
Specifies the path from which to load bootstrap classes\&. By default, the bootstrap classes are the classes that implement the core Java platform located in \f3jre\elib\ert\&.jar\fR and several other JAR files\&.
|
||||
.TP
|
||||
-old
|
||||
.br
|
||||
Specifies that old JDK 1\&.0-style header files should be generated\&.
|
||||
.TP
|
||||
-force
|
||||
.br
|
||||
Specifies that output files should always be written\&.
|
||||
.TP
|
||||
-J\fIoption\fR
|
||||
.br
|
||||
Passes \f3option\fR to the Java Virtual Machine, where \f3option\fR is one of the options described on the reference page for the Java application launcher\&. For example, \f3-J-Xms48m\fR sets the startup memory to 48 MB\&. See java(1)\&.
|
||||
.SH SEE\ ALSO
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
java(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javadoc(1)
|
||||
.RE
|
||||
.br
|
||||
'pl 8.5i
|
||||
'bp
|
@ -362,17 +362,6 @@ javadoc(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -260,9 +260,6 @@ javac(1)
|
||||
java(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.RE
|
||||
.br
|
||||
|
@ -2902,17 +2902,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jar(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1536,17 +1536,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javadoc(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -4597,17 +4597,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javap(1)
|
||||
.RE
|
||||
.SH "関連ドキュメント"
|
||||
|
@ -1,222 +0,0 @@
|
||||
'\" t
|
||||
.\" Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
.\"
|
||||
.\" This code is free software; you can redistribute it and/or modify it
|
||||
.\" under the terms of the GNU General Public License version 2 only, as
|
||||
.\" published by the Free Software Foundation.
|
||||
.\"
|
||||
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
.\" version 2 for more details (a copy is included in the LICENSE file that
|
||||
.\" accompanied this code).
|
||||
.\"
|
||||
.\" You should have received a copy of the GNU General Public License version
|
||||
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
||||
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
.\" or visit www.oracle.com if you need additional information or have any
|
||||
.\" questions.
|
||||
.\"
|
||||
.\" Title: javah
|
||||
.\" Language: Japanese
|
||||
.\" Date: 2013年11月21日
|
||||
.\" SectDesc: 基本ツール
|
||||
.\" Software: JDK 8
|
||||
.\" Arch: 汎用
|
||||
.\" Part Number: E58103-01
|
||||
.\" Doc ID: JSSON
|
||||
.\"
|
||||
.if n .pl 99999
|
||||
.TH "javah" "1" "2013年11月21日" "JDK 8" "基本ツール"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.\" http://bugs.debian.org/507673
|
||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * MAIN CONTENT STARTS HERE *
|
||||
.\" -----------------------------------------------------------------
|
||||
.SH "名前"
|
||||
javah \- JavaクラスからCヘッダーとソース・ファイルを生成します。
|
||||
.SH "概要"
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
\fBjavah\fR [ \fIoptions\fR ] f\fIully\-qualified\-class\-name \&.\&.\&.\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fIoptions\fR
|
||||
.RS 4
|
||||
コマンド行オプション。オプションを参照してください。
|
||||
.RE
|
||||
.PP
|
||||
\fIfully\-qualified\-class\-name\fR
|
||||
.RS 4
|
||||
Cヘッダーとソース・ファイルに変換されるクラスの完全修飾された場所。
|
||||
.RE
|
||||
.SH "説明"
|
||||
.PP
|
||||
\fBjavah\fRコマンドは、ネイティブ・メソッドを実装するために必要なCヘッダーとソース・ファイルを生成します。作成されたヘッダーとソース・ファイルは、ネイティブ・ソース・コードからオブジェクトのインスタンス変数を参照するためにCプログラムによって使用されます。\fB\&.h\fRファイルは、対応するクラスと一致する配置を持つ\fBstruct\fR定義を含みます。\fBstruct\fRのフィールドは、クラスのインスタンス変数に対応します。
|
||||
.PP
|
||||
ヘッダー・ファイルとその中で宣言される構造体の名前はクラスの名前から派生します。\fBjavah\fRコマンドに渡されるクラスがパッケージの中にある場合、パッケージ名はヘッダー・ファイル名と構造体名の両方の先頭に付加されます。アンダースコア(_)が名前の区切り文字として使用されます。
|
||||
.PP
|
||||
デフォルトでは\fBjavah\fRコマンドは、コマンド行にリストされる各クラスのヘッダー・ファイルを作成し、現在のディレクトリにファイルを置きます。ソース・ファイルを作成するには、\fB\-stubs\fRオプションを使用してください。1つのファイルの中に、リストされたすべてのクラスの結果を連結するには、\fB\-o\fRオプションを使用してください。
|
||||
.PP
|
||||
Java Native Interface (JNI)はヘッダー情報またはスタブ・ファイルを必要としません。\fBjavah\fRコマンドは引き続きJNI形式のネイティブ・メソッドに必要なネイティブ・メソッド関数プロトタイプの生成に使用できます。\fBjavah\fRコマンドはデフォルトでJNI形式の出力を生成し、その結果を\fB\&.h\fRファイルに格納します。
|
||||
.SH "オプション"
|
||||
.PP
|
||||
\-o \fIoutputfile\fR
|
||||
.RS 4
|
||||
コマンド行にリストされたすべてのクラスに対して、結果のヘッダーまたはソース・ファイルを連結して出力ファイルに格納します。\fB\-o\fRまたは\fB\-d\fRのどちらかのみ使用できます。
|
||||
.RE
|
||||
.PP
|
||||
\-d \fIdirectory\fR
|
||||
.RS 4
|
||||
\fBjavah\fRがヘッダー・ファイルまたはスタブ・ファイルを保存する、ディレクトリを設定します。\fB\-d\fRまたは\fB\-o\fRのどちらかのみ使用できます。
|
||||
.RE
|
||||
.PP
|
||||
\-stubs
|
||||
.RS 4
|
||||
\fBjavah\fRコマンドが、Javaオブジェクト・ファイルからC宣言を生成します。
|
||||
.RE
|
||||
.PP
|
||||
\-verbose
|
||||
.RS 4
|
||||
詳細出力を指定し、作成ファイルの状態に関するメッセージを、\fBjavah\fRコマンドが\fB標準出力\fRに出力します。
|
||||
.RE
|
||||
.PP
|
||||
\-help
|
||||
.RS 4
|
||||
\fBjavah\fRの使用方法についてのヘルプ・メッセージを出力します。
|
||||
.RE
|
||||
.PP
|
||||
\-version
|
||||
.RS 4
|
||||
\fBjavah\fRコマンドのリリース情報を出力します。
|
||||
.RE
|
||||
.PP
|
||||
\-jni
|
||||
.RS 4
|
||||
JNI形式のネイティブ・メソッド機能プロトタイプを含む出力ファイルを、\fBjavah\fRコマンドが作成します。これは標準出力であるため、\fB\-jni\fRの使用はオプションです。
|
||||
.RE
|
||||
.PP
|
||||
\-classpath \fIpath\fR
|
||||
.RS 4
|
||||
クラスを探すために\fBjavah\fRコマンドが使用するパスを指定します。デフォルトまたは\fBCLASSPATH\fR環境変数の設定をオーバーライドします。ディレクトリはOracle Solarisの場合はコロンで、Windowsの場合はセミコロンで区切られます。パスの一般的な形式は次のようになります。
|
||||
.sp
|
||||
\fBOracle Solaris\fRの場合:
|
||||
.sp
|
||||
\&.:\fIyour\-path\fR
|
||||
.sp
|
||||
例:
|
||||
\fB\&.:/home/avh/classes:/usr/local/java/classes\fR
|
||||
.sp
|
||||
\fBWindows\fRの場合:
|
||||
.sp
|
||||
\&.;\fIyour\-path\fR
|
||||
.sp
|
||||
例:
|
||||
\fB\&.;C:\eusers\edac\eclasses;C:\etools\ejava\eclasses\fR
|
||||
.sp
|
||||
便宜上、*のベース名を含むクラス・パス要素は、\fB\&.jar\fRまたは\fB\&.JAR\fRを拡張子に持つディレクトリ内のすべてのファイルのリストを指定するのと同等とみなされます。
|
||||
.sp
|
||||
たとえば、ディレクトリ\fBmydir\fRに\fBa\&.jar\fRと\fBb\&.JAR\fRが含まれている場合、クラス・パス要素\fBmydir/*\fRは\fBA\fR\fB\&.jar:b\&.JAR\fRに展開されますが、JARファイルの順番は未指定となります。このリストには、隠しファイルも含め、指定されたディレクトリ内のすべてのJARファイルが含まれます。*からなるクラス・パス・エントリは、現在のディレクトリ内のすべてのJARファイルのリストに展開されます。\fBCLASSPATH\fR環境変数も、定義時には同様に展開されます。クラス・パスのワイルドカードの展開は、Java Virtual Machine (JVM)の開始前に行われます。Javaプログラムは、環境を問い合せる場合を除き、展開されていないワイルドカードを参照しません。たとえば、\fBSystem\&.getenv("CLASSPATH")\fRをコールして問い合せる場合です。
|
||||
.RE
|
||||
.PP
|
||||
\-bootclasspath \fIpath\fR
|
||||
.RS 4
|
||||
ブートストラップ・クラスをロードするパスを指定します。ブートストラップ・クラスは、デフォルトでは\fBjre\elib\ert\&.jar\fRおよび他のいくつかのJARファイルにある、コアJavaプラットフォームを実装するクラスです。
|
||||
.RE
|
||||
.PP
|
||||
\-old
|
||||
.RS 4
|
||||
古いJDK 1\&.0形式のヘッダー・ファイルを生成するように指定します。
|
||||
.RE
|
||||
.PP
|
||||
\-force
|
||||
.RS 4
|
||||
出力ファイルが常に書き込まれるように指定します。
|
||||
.RE
|
||||
.PP
|
||||
\-J\fIoption\fR
|
||||
.RS 4
|
||||
Java Virtual Machineに\fBoption\fRを渡します。\fBoption\fRには、Javaアプリケーション起動ツールのリファレンス・ページに記載されているオプションを1つ指定します。たとえば、\fB\-J\-Xms48m\fRと指定すると、スタートアップ・メモリーは48MBに設定されます。java(1)を参照してください。
|
||||
.RE
|
||||
.SH "関連項目"
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
java(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javap(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javadoc(1)
|
||||
.RE
|
||||
.br
|
||||
'pl 8.5i
|
||||
'bp
|
@ -338,17 +338,6 @@ javadoc(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -371,17 +371,6 @@ java(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javap(1)
|
||||
.RE
|
||||
.br
|
||||
|
@ -3767,17 +3767,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jar(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1353,9 +1353,6 @@ java(1)
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javadoc(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
|
@ -2978,9 +2978,6 @@ java(1)
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.SH RELATED\ DOCUMENTS
|
||||
.TP 0.2i
|
||||
|
@ -1,158 +0,0 @@
|
||||
'\" t
|
||||
.\" Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
.\"
|
||||
.\" This code is free software; you can redistribute it and/or modify it
|
||||
.\" under the terms of the GNU General Public License version 2 only, as
|
||||
.\" published by the Free Software Foundation.
|
||||
.\"
|
||||
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
.\" version 2 for more details (a copy is included in the LICENSE file that
|
||||
.\" accompanied this code).
|
||||
.\"
|
||||
.\" You should have received a copy of the GNU General Public License version
|
||||
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
||||
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
.\" or visit www.oracle.com if you need additional information or have any
|
||||
.\" questions.
|
||||
.\"
|
||||
.\" Arch: generic
|
||||
.\" Software: JDK 8
|
||||
.\" Date: 21 November 2013
|
||||
.\" SectDesc: Basic Tools
|
||||
.\" Title: javah.1
|
||||
.\"
|
||||
.if n .pl 99999
|
||||
.TH javah 1 "21 November 2013" "JDK 8" "Basic Tools"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.\" http://bugs.debian.org/507673
|
||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * MAIN CONTENT STARTS HERE *
|
||||
.\" -----------------------------------------------------------------
|
||||
|
||||
.SH NAME
|
||||
javah \- Generates C header and source files from a Java class\&.
|
||||
.SH SYNOPSIS
|
||||
.sp
|
||||
.nf
|
||||
|
||||
\fBjavah\fR [ \fIoptions\fR ] f\fIully\-qualified\-class\-name \&.\&.\&.\fR
|
||||
.fi
|
||||
.sp
|
||||
.TP
|
||||
\fIoptions\fR
|
||||
The command-line options\&. See Options\&.
|
||||
.TP
|
||||
\fIfully-qualified-class-name\fR
|
||||
The fully qualified location of the classes to be converted to C header and source files\&.
|
||||
.SH DESCRIPTION
|
||||
The \f3javah\fR command generates C header and source files that are needed to implement native methods\&. The generated header and source files are used by C programs to reference an object\&'s instance variables from native source code\&. The \f3\&.h\fR file contains a \f3struct\fR definition with a layout that parallels the layout of the corresponding class\&. The fields in the \f3struct\fR correspond to instance variables in the class\&.
|
||||
.PP
|
||||
The name of the header file and the structure declared within it are derived from the name of the class\&. When the class passed to the \f3javah\fR command is inside a package, the package name is added to the beginning of both the header file name and the structure name\&. Underscores (_) are used as name delimiters\&.
|
||||
.PP
|
||||
By default the \f3javah\fR command creates a header file for each class listed on the command line and puts the files in the current directory\&. Use the \f3-stubs\fR option to create source files\&. Use the \f3-o\fR option to concatenate the results for all listed classes into a single file\&.
|
||||
.PP
|
||||
The Java Native Interface (JNI) does not require header information or stub files\&. The \f3javah\fR command can still be used to generate native method function prototypes needed for JNI-style native methods\&. The \f3javah\fR command produces JNI-style output by default and places the result in the \f3\&.h\fR file\&.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
-o \fIoutputfile\fR
|
||||
.br
|
||||
Concatenates the resulting header or source files for all the classes listed on the command line into an output file\&. Only one of \f3-o\fR or \f3-d\fR can be used\&.
|
||||
.TP
|
||||
-d \fIdirectory\fR
|
||||
.br
|
||||
Sets the directory where the \f3javah\fR command saves the header files or the stub files\&. Only one of \f3-d\fR or \f3-o\fR can be used\&.
|
||||
.TP
|
||||
-stubs
|
||||
.br
|
||||
Causes the \f3javah\fR command to generate C declarations from the Java object file\&.
|
||||
.TP
|
||||
-verbose
|
||||
.br
|
||||
Indicates verbose output and causes the \f3javah\fR command to print a message to \f3stdout\fR about the status of the generated files\&.
|
||||
.TP
|
||||
-help
|
||||
.br
|
||||
Prints a help message for \f3javah\fR usage\&.
|
||||
.TP
|
||||
-version
|
||||
.br
|
||||
Prints \f3javah\fR command release information\&.
|
||||
.TP
|
||||
-jni
|
||||
.br
|
||||
Causes the \f3javah\fR command to create an output file containing JNI-style native method function prototypes\&. This is the default output; use of \f3-jni\fR is optional\&.
|
||||
.TP
|
||||
-classpath \fIpath\fR
|
||||
.br
|
||||
Specifies the path the \f3javah\fR command uses to look up classes\&. Overrides the default or the \f3CLASSPATH\fR environment variable when it is set\&. Directories are separated by colons on Oracle Solaris and semicolons on Windows\&. The general format for path is:
|
||||
|
||||
\fIOracle Solaris\fR:
|
||||
|
||||
\&.:\fIyour-path\fR
|
||||
|
||||
Example: \f3\&.:/home/avh/classes:/usr/local/java/classes\fR
|
||||
|
||||
\fIWindows\fR:
|
||||
|
||||
\&.;\fIyour-path\fR
|
||||
|
||||
Example: \f3\&.;C:\eusers\edac\eclasses;C:\etools\ejava\eclasses\fR
|
||||
|
||||
As a special convenience, a class path element that contains a base name of * is considered equivalent to specifying a list of all the files in the directory with the extension \f3\&.jar\fR or \f3\&.JAR\fR\&.
|
||||
|
||||
For example, if directory \f3mydir\fR contains \f3a\&.jar\fR and \f3b\&.JAR\fR, then the class path element \f3mydir/*\fR is expanded to a \f3A\fR\f3\&.jar:b\&.JAR\fR, except that the order of jar files is unspecified\&. All JAR files in the specified directory, including hidden ones, are included in the list\&. A class path entry that consists of * expands to a list of all the JAR files in the current directory\&. The \f3CLASSPATH\fR environment variable, where defined, is similarly expanded\&. Any class path wild card expansion occurs before the Java Virtual Machine (JVM) is started\&. A Java program will never see unexpanded wild cards except by querying the environment\&. For example, by calling \f3System\&.getenv("CLASSPATH")\fR\&.
|
||||
.TP
|
||||
-bootclasspath \fIpath\fR
|
||||
.br
|
||||
Specifies the path from which to load bootstrap classes\&. By default, the bootstrap classes are the classes that implement the core Java platform located in \f3jre\elib\ert\&.jar\fR and several other JAR files\&.
|
||||
.TP
|
||||
-old
|
||||
.br
|
||||
Specifies that old JDK 1\&.0-style header files should be generated\&.
|
||||
.TP
|
||||
-force
|
||||
.br
|
||||
Specifies that output files should always be written\&.
|
||||
.TP
|
||||
-J\fIoption\fR
|
||||
.br
|
||||
Passes \f3option\fR to the Java Virtual Machine, where \f3option\fR is one of the options described on the reference page for the Java application launcher\&. For example, \f3-J-Xms48m\fR sets the startup memory to 48 MB\&. See java(1)\&.
|
||||
.SH SEE\ ALSO
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
java(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javadoc(1)
|
||||
.RE
|
||||
.br
|
||||
'pl 8.5i
|
||||
'bp
|
@ -362,17 +362,6 @@ javadoc(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -260,9 +260,6 @@ javac(1)
|
||||
java(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.RE
|
||||
.br
|
||||
|
@ -2902,17 +2902,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jar(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1536,17 +1536,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javadoc(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -4597,17 +4597,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javap(1)
|
||||
.RE
|
||||
.SH "関連ドキュメント"
|
||||
|
@ -1,222 +0,0 @@
|
||||
'\" t
|
||||
.\" Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
.\"
|
||||
.\" This code is free software; you can redistribute it and/or modify it
|
||||
.\" under the terms of the GNU General Public License version 2 only, as
|
||||
.\" published by the Free Software Foundation.
|
||||
.\"
|
||||
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
.\" version 2 for more details (a copy is included in the LICENSE file that
|
||||
.\" accompanied this code).
|
||||
.\"
|
||||
.\" You should have received a copy of the GNU General Public License version
|
||||
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
||||
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
.\" or visit www.oracle.com if you need additional information or have any
|
||||
.\" questions.
|
||||
.\"
|
||||
.\" Title: javah
|
||||
.\" Language: Japanese
|
||||
.\" Date: 2013年11月21日
|
||||
.\" SectDesc: 基本ツール
|
||||
.\" Software: JDK 8
|
||||
.\" Arch: 汎用
|
||||
.\" Part Number: E58103-01
|
||||
.\" Doc ID: JSSON
|
||||
.\"
|
||||
.if n .pl 99999
|
||||
.TH "javah" "1" "2013年11月21日" "JDK 8" "基本ツール"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.\" http://bugs.debian.org/507673
|
||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * MAIN CONTENT STARTS HERE *
|
||||
.\" -----------------------------------------------------------------
|
||||
.SH "名前"
|
||||
javah \- JavaクラスからCヘッダーとソース・ファイルを生成します。
|
||||
.SH "概要"
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
\fBjavah\fR [ \fIoptions\fR ] f\fIully\-qualified\-class\-name \&.\&.\&.\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fIoptions\fR
|
||||
.RS 4
|
||||
コマンド行オプション。オプションを参照してください。
|
||||
.RE
|
||||
.PP
|
||||
\fIfully\-qualified\-class\-name\fR
|
||||
.RS 4
|
||||
Cヘッダーとソース・ファイルに変換されるクラスの完全修飾された場所。
|
||||
.RE
|
||||
.SH "説明"
|
||||
.PP
|
||||
\fBjavah\fRコマンドは、ネイティブ・メソッドを実装するために必要なCヘッダーとソース・ファイルを生成します。作成されたヘッダーとソース・ファイルは、ネイティブ・ソース・コードからオブジェクトのインスタンス変数を参照するためにCプログラムによって使用されます。\fB\&.h\fRファイルは、対応するクラスと一致する配置を持つ\fBstruct\fR定義を含みます。\fBstruct\fRのフィールドは、クラスのインスタンス変数に対応します。
|
||||
.PP
|
||||
ヘッダー・ファイルとその中で宣言される構造体の名前はクラスの名前から派生します。\fBjavah\fRコマンドに渡されるクラスがパッケージの中にある場合、パッケージ名はヘッダー・ファイル名と構造体名の両方の先頭に付加されます。アンダースコア(_)が名前の区切り文字として使用されます。
|
||||
.PP
|
||||
デフォルトでは\fBjavah\fRコマンドは、コマンド行にリストされる各クラスのヘッダー・ファイルを作成し、現在のディレクトリにファイルを置きます。ソース・ファイルを作成するには、\fB\-stubs\fRオプションを使用してください。1つのファイルの中に、リストされたすべてのクラスの結果を連結するには、\fB\-o\fRオプションを使用してください。
|
||||
.PP
|
||||
Java Native Interface (JNI)はヘッダー情報またはスタブ・ファイルを必要としません。\fBjavah\fRコマンドは引き続きJNI形式のネイティブ・メソッドに必要なネイティブ・メソッド関数プロトタイプの生成に使用できます。\fBjavah\fRコマンドはデフォルトでJNI形式の出力を生成し、その結果を\fB\&.h\fRファイルに格納します。
|
||||
.SH "オプション"
|
||||
.PP
|
||||
\-o \fIoutputfile\fR
|
||||
.RS 4
|
||||
コマンド行にリストされたすべてのクラスに対して、結果のヘッダーまたはソース・ファイルを連結して出力ファイルに格納します。\fB\-o\fRまたは\fB\-d\fRのどちらかのみ使用できます。
|
||||
.RE
|
||||
.PP
|
||||
\-d \fIdirectory\fR
|
||||
.RS 4
|
||||
\fBjavah\fRがヘッダー・ファイルまたはスタブ・ファイルを保存する、ディレクトリを設定します。\fB\-d\fRまたは\fB\-o\fRのどちらかのみ使用できます。
|
||||
.RE
|
||||
.PP
|
||||
\-stubs
|
||||
.RS 4
|
||||
\fBjavah\fRコマンドが、Javaオブジェクト・ファイルからC宣言を生成します。
|
||||
.RE
|
||||
.PP
|
||||
\-verbose
|
||||
.RS 4
|
||||
詳細出力を指定し、作成ファイルの状態に関するメッセージを、\fBjavah\fRコマンドが\fB標準出力\fRに出力します。
|
||||
.RE
|
||||
.PP
|
||||
\-help
|
||||
.RS 4
|
||||
\fBjavah\fRの使用方法についてのヘルプ・メッセージを出力します。
|
||||
.RE
|
||||
.PP
|
||||
\-version
|
||||
.RS 4
|
||||
\fBjavah\fRコマンドのリリース情報を出力します。
|
||||
.RE
|
||||
.PP
|
||||
\-jni
|
||||
.RS 4
|
||||
JNI形式のネイティブ・メソッド機能プロトタイプを含む出力ファイルを、\fBjavah\fRコマンドが作成します。これは標準出力であるため、\fB\-jni\fRの使用はオプションです。
|
||||
.RE
|
||||
.PP
|
||||
\-classpath \fIpath\fR
|
||||
.RS 4
|
||||
クラスを探すために\fBjavah\fRコマンドが使用するパスを指定します。デフォルトまたは\fBCLASSPATH\fR環境変数の設定をオーバーライドします。ディレクトリはOracle Solarisの場合はコロンで、Windowsの場合はセミコロンで区切られます。パスの一般的な形式は次のようになります。
|
||||
.sp
|
||||
\fBOracle Solaris\fRの場合:
|
||||
.sp
|
||||
\&.:\fIyour\-path\fR
|
||||
.sp
|
||||
例:
|
||||
\fB\&.:/home/avh/classes:/usr/local/java/classes\fR
|
||||
.sp
|
||||
\fBWindows\fRの場合:
|
||||
.sp
|
||||
\&.;\fIyour\-path\fR
|
||||
.sp
|
||||
例:
|
||||
\fB\&.;C:\eusers\edac\eclasses;C:\etools\ejava\eclasses\fR
|
||||
.sp
|
||||
便宜上、*のベース名を含むクラス・パス要素は、\fB\&.jar\fRまたは\fB\&.JAR\fRを拡張子に持つディレクトリ内のすべてのファイルのリストを指定するのと同等とみなされます。
|
||||
.sp
|
||||
たとえば、ディレクトリ\fBmydir\fRに\fBa\&.jar\fRと\fBb\&.JAR\fRが含まれている場合、クラス・パス要素\fBmydir/*\fRは\fBA\fR\fB\&.jar:b\&.JAR\fRに展開されますが、JARファイルの順番は未指定となります。このリストには、隠しファイルも含め、指定されたディレクトリ内のすべてのJARファイルが含まれます。*からなるクラス・パス・エントリは、現在のディレクトリ内のすべてのJARファイルのリストに展開されます。\fBCLASSPATH\fR環境変数も、定義時には同様に展開されます。クラス・パスのワイルドカードの展開は、Java Virtual Machine (JVM)の開始前に行われます。Javaプログラムは、環境を問い合せる場合を除き、展開されていないワイルドカードを参照しません。たとえば、\fBSystem\&.getenv("CLASSPATH")\fRをコールして問い合せる場合です。
|
||||
.RE
|
||||
.PP
|
||||
\-bootclasspath \fIpath\fR
|
||||
.RS 4
|
||||
ブートストラップ・クラスをロードするパスを指定します。ブートストラップ・クラスは、デフォルトでは\fBjre\elib\ert\&.jar\fRおよび他のいくつかのJARファイルにある、コアJavaプラットフォームを実装するクラスです。
|
||||
.RE
|
||||
.PP
|
||||
\-old
|
||||
.RS 4
|
||||
古いJDK 1\&.0形式のヘッダー・ファイルを生成するように指定します。
|
||||
.RE
|
||||
.PP
|
||||
\-force
|
||||
.RS 4
|
||||
出力ファイルが常に書き込まれるように指定します。
|
||||
.RE
|
||||
.PP
|
||||
\-J\fIoption\fR
|
||||
.RS 4
|
||||
Java Virtual Machineに\fBoption\fRを渡します。\fBoption\fRには、Javaアプリケーション起動ツールのリファレンス・ページに記載されているオプションを1つ指定します。たとえば、\fB\-J\-Xms48m\fRと指定すると、スタートアップ・メモリーは48MBに設定されます。java(1)を参照してください。
|
||||
.RE
|
||||
.SH "関連項目"
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
java(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javap(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javadoc(1)
|
||||
.RE
|
||||
.br
|
||||
'pl 8.5i
|
||||
'bp
|
@ -338,17 +338,6 @@ javadoc(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -371,17 +371,6 @@ java(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javap(1)
|
||||
.RE
|
||||
.br
|
||||
|
@ -3767,17 +3767,6 @@ jdb(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jar(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1353,9 +1353,6 @@ java(1)
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javadoc(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
|
@ -2978,9 +2978,6 @@ java(1)
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.SH RELATED\ DOCUMENTS
|
||||
.TP 0.2i
|
||||
|
@ -1,158 +0,0 @@
|
||||
'\" t
|
||||
.\" Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
.\"
|
||||
.\" This code is free software; you can redistribute it and/or modify it
|
||||
.\" under the terms of the GNU General Public License version 2 only, as
|
||||
.\" published by the Free Software Foundation.
|
||||
.\"
|
||||
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
.\" version 2 for more details (a copy is included in the LICENSE file that
|
||||
.\" accompanied this code).
|
||||
.\"
|
||||
.\" You should have received a copy of the GNU General Public License version
|
||||
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
||||
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
.\" or visit www.oracle.com if you need additional information or have any
|
||||
.\" questions.
|
||||
.\"
|
||||
.\" Arch: generic
|
||||
.\" Software: JDK 8
|
||||
.\" Date: 21 November 2013
|
||||
.\" SectDesc: Basic Tools
|
||||
.\" Title: javah.1
|
||||
.\"
|
||||
.if n .pl 99999
|
||||
.TH javah 1 "21 November 2013" "JDK 8" "Basic Tools"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.\" http://bugs.debian.org/507673
|
||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * MAIN CONTENT STARTS HERE *
|
||||
.\" -----------------------------------------------------------------
|
||||
|
||||
.SH NAME
|
||||
javah \- Generates C header and source files from a Java class\&.
|
||||
.SH SYNOPSIS
|
||||
.sp
|
||||
.nf
|
||||
|
||||
\fBjavah\fR [ \fIoptions\fR ] f\fIully\-qualified\-class\-name \&.\&.\&.\fR
|
||||
.fi
|
||||
.sp
|
||||
.TP
|
||||
\fIoptions\fR
|
||||
The command-line options\&. See Options\&.
|
||||
.TP
|
||||
\fIfully-qualified-class-name\fR
|
||||
The fully qualified location of the classes to be converted to C header and source files\&.
|
||||
.SH DESCRIPTION
|
||||
The \f3javah\fR command generates C header and source files that are needed to implement native methods\&. The generated header and source files are used by C programs to reference an object\&'s instance variables from native source code\&. The \f3\&.h\fR file contains a \f3struct\fR definition with a layout that parallels the layout of the corresponding class\&. The fields in the \f3struct\fR correspond to instance variables in the class\&.
|
||||
.PP
|
||||
The name of the header file and the structure declared within it are derived from the name of the class\&. When the class passed to the \f3javah\fR command is inside a package, the package name is added to the beginning of both the header file name and the structure name\&. Underscores (_) are used as name delimiters\&.
|
||||
.PP
|
||||
By default the \f3javah\fR command creates a header file for each class listed on the command line and puts the files in the current directory\&. Use the \f3-stubs\fR option to create source files\&. Use the \f3-o\fR option to concatenate the results for all listed classes into a single file\&.
|
||||
.PP
|
||||
The Java Native Interface (JNI) does not require header information or stub files\&. The \f3javah\fR command can still be used to generate native method function prototypes needed for JNI-style native methods\&. The \f3javah\fR command produces JNI-style output by default and places the result in the \f3\&.h\fR file\&.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
-o \fIoutputfile\fR
|
||||
.br
|
||||
Concatenates the resulting header or source files for all the classes listed on the command line into an output file\&. Only one of \f3-o\fR or \f3-d\fR can be used\&.
|
||||
.TP
|
||||
-d \fIdirectory\fR
|
||||
.br
|
||||
Sets the directory where the \f3javah\fR command saves the header files or the stub files\&. Only one of \f3-d\fR or \f3-o\fR can be used\&.
|
||||
.TP
|
||||
-stubs
|
||||
.br
|
||||
Causes the \f3javah\fR command to generate C declarations from the Java object file\&.
|
||||
.TP
|
||||
-verbose
|
||||
.br
|
||||
Indicates verbose output and causes the \f3javah\fR command to print a message to \f3stdout\fR about the status of the generated files\&.
|
||||
.TP
|
||||
-help
|
||||
.br
|
||||
Prints a help message for \f3javah\fR usage\&.
|
||||
.TP
|
||||
-version
|
||||
.br
|
||||
Prints \f3javah\fR command release information\&.
|
||||
.TP
|
||||
-jni
|
||||
.br
|
||||
Causes the \f3javah\fR command to create an output file containing JNI-style native method function prototypes\&. This is the default output; use of \f3-jni\fR is optional\&.
|
||||
.TP
|
||||
-classpath \fIpath\fR
|
||||
.br
|
||||
Specifies the path the \f3javah\fR command uses to look up classes\&. Overrides the default or the \f3CLASSPATH\fR environment variable when it is set\&. Directories are separated by colons on Oracle Solaris and semicolons on Windows\&. The general format for path is:
|
||||
|
||||
\fIOracle Solaris\fR:
|
||||
|
||||
\&.:\fIyour-path\fR
|
||||
|
||||
Example: \f3\&.:/home/avh/classes:/usr/local/java/classes\fR
|
||||
|
||||
\fIWindows\fR:
|
||||
|
||||
\&.;\fIyour-path\fR
|
||||
|
||||
Example: \f3\&.;C:\eusers\edac\eclasses;C:\etools\ejava\eclasses\fR
|
||||
|
||||
As a special convenience, a class path element that contains a base name of * is considered equivalent to specifying a list of all the files in the directory with the extension \f3\&.jar\fR or \f3\&.JAR\fR\&.
|
||||
|
||||
For example, if directory \f3mydir\fR contains \f3a\&.jar\fR and \f3b\&.JAR\fR, then the class path element \f3mydir/*\fR is expanded to a \f3A\fR\f3\&.jar:b\&.JAR\fR, except that the order of jar files is unspecified\&. All JAR files in the specified directory, including hidden ones, are included in the list\&. A class path entry that consists of * expands to a list of all the JAR files in the current directory\&. The \f3CLASSPATH\fR environment variable, where defined, is similarly expanded\&. Any class path wild card expansion occurs before the Java Virtual Machine (JVM) is started\&. A Java program will never see unexpanded wild cards except by querying the environment\&. For example, by calling \f3System\&.getenv("CLASSPATH")\fR\&.
|
||||
.TP
|
||||
-bootclasspath \fIpath\fR
|
||||
.br
|
||||
Specifies the path from which to load bootstrap classes\&. By default, the bootstrap classes are the classes that implement the core Java platform located in \f3jre\elib\ert\&.jar\fR and several other JAR files\&.
|
||||
.TP
|
||||
-old
|
||||
.br
|
||||
Specifies that old JDK 1\&.0-style header files should be generated\&.
|
||||
.TP
|
||||
-force
|
||||
.br
|
||||
Specifies that output files should always be written\&.
|
||||
.TP
|
||||
-J\fIoption\fR
|
||||
.br
|
||||
Passes \f3option\fR to the Java Virtual Machine, where \f3option\fR is one of the options described on the reference page for the Java application launcher\&. For example, \f3-J-Xms48m\fR sets the startup memory to 48 MB\&. See java(1)\&.
|
||||
.SH SEE\ ALSO
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
java(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
jdb(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javadoc(1)
|
||||
.RE
|
||||
.br
|
||||
'pl 8.5i
|
||||
'bp
|
@ -362,17 +362,6 @@ javadoc(1)
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
javah(1)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
jdb(1)
|
||||
.RE
|
||||
.sp
|
||||
|
@ -260,9 +260,6 @@ javac(1)
|
||||
java(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javah(1)
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
javap(1)
|
||||
.RE
|
||||
.br
|
||||
|
Loading…
Reference in New Issue
Block a user