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!

Static verses Non Static method in JNI

843829Mar 17 2006 — edited Mar 18 2006
Hi,

I have a piece of code in which C is calling Java and return a value. It works fine as long as the Java method is static.
When it's not static, and I call env->GetMethodID(), verses env->GetStaticMethodID, it does not work and I get some opage exception.

Are there any other differences onre then the GetMethodID()???
Thanks,
-Michael
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2006
Added on Mar 17 2006
2 comments
579 views