Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNI-> Find caller class directory

975317Nov 20 2012 — edited Nov 21 2012
Hello!

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
This post has been answered by EJP on Nov 21 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2012
Added on Nov 20 2012
7 comments
4,037 views