M
MP
I have the Invocation API code working properly. I get a jclass with the
proper path to our jar successfully. I would now like to create an
instance of this class so I can call some non static instance methods on
it. I can successfully get its constructor (I think that's what I'm
getting) by using mid = env->GetMethodID(cls, "<init>", "()V);. However,
when I try to get create an instance jobject theclass =
env->NewObject(cls, mid) I get a NULL returned. Any ideas?
proper path to our jar successfully. I would now like to create an
instance of this class so I can call some non static instance methods on
it. I can successfully get its constructor (I think that's what I'm
getting) by using mid = env->GetMethodID(cls, "<init>", "()V);. However,
when I try to get create an instance jobject theclass =
env->NewObject(cls, mid) I get a NULL returned. Any ideas?