Is it a bug in JNI...CallVoidMethod(..) giving runtime error??
843829Aug 29 2001 — edited Aug 31 2001Hi
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?