HelloJNI.c 286 Bytes
Newer Older
Martin Deinhofer's avatar
Martin Deinhofer committed
1
2
#include <jni.h>
#include <stdio.h>
3
#include "java_exercises7_1_1_HelloJNI.h"
Martin Deinhofer's avatar
Martin Deinhofer committed
4
5

// Implementation of native method sayHello() of HelloJNI class
6
JNIEXPORT void JNICALL Java_java_1exercises7_11_11_HelloJNI_sayHello(JNIEnv *env, jobject thisObj) {
Martin Deinhofer's avatar
Martin Deinhofer committed
7
8
9
   printf("Hello World!\n");
   return;
}