#include "jniexample.h"
/**
* this method just returns the string "hello world from jni!" to the caller
* parameters:
* env - jni environment pointer
* obj - invoking object
* returns:
* a string
**/
extern "c" jniexport jstring jnicall java_jniexample_sayhello
( jnienv *env, jobject obj ) {
return env->newstringutf( "hello world from jni!" );
}
闽公网安备 35060202000074号