OS Manuals

/usr/lib/jvm/java-1.9-openjdk/bin/javah

Oracle OpenJDK 9

From openjdk-9 9.0.4-r8 (os), captured 2026-11-05 by running javah --help (exit 0). permalink

Warning: The javah tool is planned to be removed in the next major
JDK release. The tool has been superseded by the '-h' option added
to javac in JDK 8. Users are recommended to migrate to using the
javac '-h' option; see the javac man page for more information.

Usage:
  javah [options] <classes>
where [options] include:
  -o <file>                    Output file (only one of -d or -o may be used)
  -d <dir>                     Output directory
  -v  -verbose                 Enable verbose output
  -h  --help  -?               Print this message
  -version                     Print version information
  -jni                         Generate JNI-style header file (default)
  -force                       Always write output files
  --module-path <path>         Path from which to load application modules
  --system <jdk>               Specify where to find system modules
  --class-path <path>          Path from which to load classes
  -classpath <path>            Path from which to load classes
  -cp <path>                   Path from which to load classes
  -bootclasspath <path>        Path from which to load bootstrap classes

GNU-style options may use = instead whitespace to separate the name of an option
from its value.

Each class must be specified by its fully qualified names, optionally
prefixed by a module name followed by /. Examples:
    java.lang.Object
    java.base/java.io.File
Options (13)
OptionDescriptionSource
-o fileOutput file (only one of -d or -o may be used)help
-d dirOutput directoryhelp
-v-verbose Enable verbose outputhelp
-h--help -? Print this messagehelp
-versionPrint version informationhelp
-jniGenerate JNI-style header file (default)help
-forceAlways write output fileshelp
--module-path pathPath from which to load application moduleshelp
--system jdkSpecify where to find system moduleshelp
--class-path pathPath from which to load classeshelp
-classpath pathPath from which to load classeshelp
-cp pathPath from which to load classeshelp
-bootclasspath pathPath from which to load bootstrap classeshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.