| |
技术文档>>JAVA>>新手入门>>基础入门>查看文档 |
|
| |
java核心代码例程之:jniexample.cpp |
|
| |
文章作者:未知 文章来源:水木森林 |
|
| |
查看:330次 录入:管理员--2007-11-17 |
|
| |
#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!" ); }
|
|