Java核心代码例程之:JNIExample.cpp
2008-01-05 08:39:43 来源:WEB开发网核心提示:#include "JNIExample.h"/*** This method just returns the string "Hello World from JNI!" to the caller* Parameters:*env-JNI Environment point
#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!" );
}
更多精彩
赞助商链接