I have a java method, like this:
public static native void receiveCallback(byte[] value1, byte[] value2);
In JNI I can reach the class and I can reach the method, but my parameter list is incorrect. I am trying to call the method like this:
jmethodID testJavaMethod = (java_environment)->GetMethodID(clazz, "receiveCallback","([B[B");
I then get a NoSuchMethod exception at runtime.
I followed multiple SO questions, including this one JNI - How to callback from C++ or C to Java?, but I'm still stuck.
Any suggestions?
Thanks.