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
* Define some portability stuff
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bugs.debian.org/507673
http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
javah [ options ] fully-qualified-class-name ...
options The command-line options. See Options.
fully-qualified-class-name The fully qualified location of the classes to be converted to C header and source files.
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 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.
By default the \f3javah 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 option to create source files. Use the \f3-o option to concatenate the results for all listed classes into a single file.
The Java Native Interface (JNI) does not require header information or stub files. The \f3javah command can still be used to generate native method function prototypes needed for JNI-style native methods. The \f3javah command produces JNI-style output by default and places the result in the \f3.h file.
-o outputfile
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 or \f3-d can be used.
-d directory
Sets the directory where the \f3javah command saves the header files or the stub files. Only one of \f3-d or \f3-o can be used.
-stubs
Causes the \f3javah command to generate C declarations from the Java object file.
-verbose
Indicates verbose output and causes the \f3javah command to print a message to \f3stdout about the status of the generated files.
-help
Prints a help message for \f3javah usage.
-version
Prints \f3javah command release information.
-jni
Causes the \f3javah command to create an output file containing JNI-style native method function prototypes. This is the default output; use of \f3-jni is optional.
-classpath path
Specifies the path the \f3javah command uses to look up classes. Overrides the default or the \f3CLASSPATH environment variable when it is set. Directories are separated by colons on Oracle Solaris and semicolons on Windows. The general format for path is: Oracle Solaris: .:your-path Example: \f3.:/home/avh/classes:/usr/local/java/classes Windows: .;your-path Example: \f3.;C:\eusers\edac\eclasses;C:\etools\ejava\eclasses 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 or \f3.JAR. For example, if directory \f3mydir contains \f3a.jar and \f3b.JAR, then the class path element \f3mydir/* is expanded to a \f3A\f3.jar:b.JAR, 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 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").
-bootclasspath path
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 and several other JAR files.
-old
Specifies that old JDK 1.0-style header files should be generated.
-force
Specifies that output files should always be written.
-Joption
Passes \f3option to the Java Virtual Machine, where \f3option is one of the options described on the reference page for the Java application launcher. For example, \f3-J-Xms48m sets the startup memory to 48 MB. See java(1).
0.2i javah(1)
0.2i java(1)
0.2i jdb(1)
0.2i javap(1)
0.2i javadoc(1)
'pl 8.5i 'bp