Step 2: Generate Header File
1) Use javah tool from JDK to create header file.
2) Target your compiled class file.
3) Be sure to use the -jni switch:
4) For older, non-JNI header files, use the -stub
option with javah. (Ask: why are you using the old native invocation anyway? Consider upgrading to 1.1)
5) Don’t edit the source Java file (e.g., even
adding a package statements invalidates the
This should create a header file essential
for your implementation . . .