---
name: "x86_64-linux-gnu-gcjh-6"
section: "1"
platform: "linux"
package: "gcj-6-jdk"
version: "6.3.0-18+deb9u1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/x86_64-linux-gnu-gcjh-6"
---

# x86\_64-linux-gnu-gcjh-6(1)

\- generate header files from Java class files

## NAME

gcjh - - generate header files from Java class files

## SYNOPSIS

gcjh \[*OPTIONS*\]... *CLASS*...

## DESCRIPTION

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.  It is similar to `"javah"` but has slightly different command line options, and defaults to CNI.

## OPTIONS

See `"javah"` for a full description; this page only lists the additional options provided by `"gcjh"`.

CNI text options

- **-add** *text*

  Insert *text* into class body.

- **-append** *text*

  Append *text* after class declaration.

- **-friend** *text*

  Insert *text* as a `"friend"` declaration.

- **-prepend** *text*

  Insert *text* before start of class.

Compatibility options (unused)

- **-td** *DIR*

  - **-M**

  - **-MM**

  - **-MD**

  - **-MMD**

  Unused compatibility option.

Standard options:

- **-help**

  Print help text, then exit.

- **-version**

  Print version number, then exit.

- **-J***OPTION*

  Pass argument to the Java runtime.

## BUGS

## SEE ALSO

*javac*(1), *javah*(1), ...

## AUTHOR
