D
Danno
I'm taking my first stab at JNI. I have a main Java class that
instantiates another class. In my C++ code, I am using the FindClass
function for the main class and calling the method in the main class
using GetStaticMethodId/CallStaticIntMethod. The C++ code is
successfully finding the Java class and calling the method that I
specified in the GetStaticMethoId function. The only problem is, when
the Java class attempts to create an instance of this second, inner
class, it dies. I don't get an error, it just doesn't work.
My question is... Do I need another FindClass statement for the second
class even though the C++ code is not invoking the second class
directly? If so, how would I do that?
Thanks so much for your insight!
instantiates another class. In my C++ code, I am using the FindClass
function for the main class and calling the method in the main class
using GetStaticMethodId/CallStaticIntMethod. The C++ code is
successfully finding the Java class and calling the method that I
specified in the GetStaticMethoId function. The only problem is, when
the Java class attempts to create an instance of this second, inner
class, it dies. I don't get an error, it just doesn't work.
My question is... Do I need another FindClass statement for the second
class even though the C++ code is not invoking the second class
directly? If so, how would I do that?
Thanks so much for your insight!