gcjh(1)

gcjh1

Generate header files from java class files

Usage

gcjh [-stubs] [-jni] [-add text] [-append text] [-friend text] [-preprend text] [--classpath=path] [--CLASSPATH=path] [-Idir ...] [-d dir ...] [-o file] [-td dir] [-M] [-MM] [-MD] [-MMD] [--version] [--help] [-v] [--verbose]

classname

Overview

The "gcjh" program is used to generate header files from class files. It can generate both CNI and JNI header files, as well as stub implementation files which can be used as a basis for implementing the required native methods.

Options

-stubs

This causes "gcjh" to generate stub files instead of header files. By default the stub file will be named after the class, with a suffix of .cc. In JNI mode, the default output file will have the suffix .c.

-jni

This tells "gcjh" to generate a JNI header or stub. By default, CNI headers are generated.

-add text

Inserts text into the class body. This is ignored in JNI mode.

-append text

Inserts text into the header file after the class declaration. This is ignored in JNI mode.

-friend text

Inserts text into the class as a "friend" declaration. This is ignored in JNI mode.

-prepend text

Inserts text into the header file before the class declaration. This is ignored in JNI mode.

--classpath=path
--CLASSPATH=path
-Idirectory
-d directory
-o file

These options are all identical to the corresponding gcj options.

-o file

Sets the output file name. This cannot be used if there is more than one class on the command line.

-td directory

Sets the name of the directory to use for temporary files.

-M

Print all dependencies to stdout; suppress ordinary output.

-MM

Print non-system dependencies to stdout; suppress ordinary output.

-MD

Print all dependencies to stdout.

-MMD

Print non-system dependencies to stdout.

--help

Print help about "gcjh" and exit. No further processing is done.

--version

Print version information for "gcjh" and exit. No further processing is done.

-v, --verbose

Print extra information while running.

All remaining options are considered to be names of classes.

Releases

3 releases since Debian 2.2 (Potato); the text changed 2 times.

  1. 2.2
  2. 3.0
  3. 3.1

--CLASSPATH since Debian 3.0 (Woody); --classpath since Debian 3.0 (Woody); --help since Debian 3.0 (Woody); --verbose since Debian 3.0 (Woody); --version since Debian 3.0 (Woody); -I since Debian 3.0 (Woody); -M since Debian 3.0 (Woody); -MD since Debian 3.0 (Woody); -MM since Debian 3.0 (Woody); -MMD since Debian 3.0 (Woody); -add since Debian 3.0 (Woody); -append since Debian 3.0 (Woody); -d since Debian 3.0 (Woody); -friend since Debian 3.0 (Woody); -jni since Debian 3.0 (Woody); -o since Debian 3.0 (Woody); -prepend since Debian 3.0 (Woody); -stubs since Debian 3.0 (Woody); -td since Debian 3.0 (Woody); -v since Debian 3.0 (Woody).

From gcj 4:3.3.5-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.