Problems calling Java Methods from C++
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Christopher_Myer
Posted On:   Wednesday, May 16, 2007 01:37 PM

I have the following code:


env->FindClass("nativeInterface/NativeCallbacks");


I'm trying to load the NativeCallbacks class. But I keep getting the following error:



Exception in thread "main" java.lang.NoSuchMethodError: recvMessage at nativeInterface.NativeCallbacks.javaCallback(Native Method) at debugging.WACPNativeInterfaceMain.main(WACPNativeInterfaceMain.java:18)



Is there something I have to do I am not doing? Does the folder with the Java class have to be included in my project settings somehow.... any help would be appreciated.

Re: Problems calling Java Methods from C++

Posted By:   Christopher_Myer  
Posted On:   Thursday, May 17, 2007 11:26 AM

I've resolved the above error, but I'm getting another error. When I make a Java method call from a native function the call goes through. But when I make the same call, with the same pointers from a non-native method I get an EXCEPTION_ACCESS_VIOLATION I know my inputs are good. Any thoughts?
About | Sitemap | Contact