Step 3: Implement Your JNI Method
1) #include the header from javah
2) Use the function prototypes generated by javah
3) Remember that Java Strings are objects, not char arrays.
4) Consult the JNI API for a list of helpful functions and methods
5) Note that ALL functions have two parameters, at least:
JNIEnv * env, jobject thisObj
These are references to the VM and “this” object,
respectively. They are the window into the process running in the VM.