javah is used to produce C header files from a Java class. The generated header files are used to interact Java and C code.
In the above example, HelloWorld is Java class file.Code:
javah -jni HeloWorld
The option used in the exampe (-jni) causes javah to create an output file containing JNI-style native method function prototypes.