Java 2 SDK for Solaris Developer's Guide

javah

The javah command generates C header and source files that are needed to implement native methods. C programs use the generated header and source files to reference instance variables of an object from native source code. JNI does not require header information or stub files. You can still use the javah command with the jni option to generate native method function prototypes needed for JNI-style native methods. The result is placed in the .h file.

In JDK 1.1 default mode, the javah command generates NMI output.

Because the NMI interfaces are completely incompatible with the Java 2 SDK for Solaris implementation, Java 2 SDK for Solaris does not support the production of NMI-style output by way of the -old flag. Rather the -old flag is parsed and, if it is found, an -old not supported message occurs and javah exits.