OS Manuals

/usr/lib/jvm/java-1.8-adoptium/bin/javah

OpenJDK 8

From adoptium-openjdk-8 8.512.5-r3 (enterprise-packages), captured 2026-11-08 by running javah --help (exit 0). permalink

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
  -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
<classes> are specified with their fully qualified names
(for example, java.lang.Object).
Options (15)
OptionDescriptionSource
-o fileConcatenates the resulting header or source files for all the classes listed on the command line into an output file.help + man
-d dirSets the directory where the javah command saves the header files or the stub files.help + man
-v-verbose Enable verbose outputhelp
-h--help -? Print this messagehelp
-versionPrints javah command release information.help + man
-jniCauses the javah command to create an output file containing JNI-style native method function prototypes.help + man
-forceSpecifies that output files should always be written.help + man
-classpath pathSpecifies the path the javah command uses to look up classes.help + man
-cp pathPath from which to load classeshelp
-bootclasspath pathSpecifies the path from which to load bootstrap classes.help + man
-stubsCauses the javah command to generate C declarations from the Java object file. (in the manual page but not in --help)man
-verboseIndicates verbose output and causes the javah command to print a message to stdout about the status of the generated files. (in the manual page but not in --help)man
-helpPrints a help message for javah usage. (in the manual page but not in --help)man
-oldSpecifies that old JDK 1.0-style header files should be generated. (in the manual page but not in --help)man
-JoptionPasses option to the Java Virtual Machine, where option is one of the options described on the reference page for the Java application launcher. (in the manual page but not in --help)man

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