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!

Is it a bug in JNI...CallVoidMethod(..) giving runtime error??

843829Aug 29 2001 — edited Aug 31 2001
Hi

I have invoked jvm using C++. I called the main method of my application and it is running fine.

When I try to invoke another method of the same class that is not static by GetMethodID(..) and then CallVoidMethod(..), the ID is coming out fine but the call to the method is giving a runtime error.

When I make this method static in java, it runs fine.

Is it a bug in JNI that we cannot call nonstatic void methods?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2001
Added on Aug 29 2001
3 comments
364 views