Displaying 1 result from an estimated 1 matches for "java_helloimpl_sayhello".
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...so HelloImpl_main.c -shared -fpic -I/usr/java/jdk1.5.0_12/include -I/usr/java/jdk1.5.0_12/include/linux
3. From JAVA call to load so lib (I can load and link to the function)
4.Load so and call the function
It can call BUT it will have crashed at the wine lib functions.
JNIEXPORT jstring JNICALL Java_HelloImpl_sayHello
(JNIEnv *jEvn, jobject jObj){
printf("sayHello [BEGIN]\n");
char sText[255];
HELLOIMPL_global_sayHello_2(sText);
printf("sayHello [END CALL]\n");
jstring retmess;
retmess = (*jEvn)->NewStringUTF(jEvn, sText);
return retmess;
}
Cra...