JNI-> Find caller class directory
975317Nov 20 2012 — edited Nov 21 2012Hello!
My native method in dll on C++ is:
JNIEXPORT jstring JNICALL Java_Auth_checkClient(JNIEnv *env, jclass cls, jint serverid)
{
}
How can I find out who called this method Java_Auth_checkClient. That is, I need the absolute path to the file (in this case, the jar), which calls Java_Auth_checkClient in dll.
thanks in advance