#include "javatech_jni22_JNIHelloWorld.h" #include // This is the non-static native method. Note that it receives a jobject // argument inthe second position. JNIEXPORT void JNICALL Java_javatech_jni22_JNIHelloWorld_nativeHelloWorld (JNIEnv *, jobject) { printf (" Hello World (non-static)\n"); return; } // The static native method receives a jclass variable in the second position. JNIEXPORT void JNICALL Java_javatech_jni22_JNIHelloWorld_nativeHelloWorldStatic (JNIEnv *, jclass) { printf (" Hello World (static)\n"); return; }