Jni Method: Formal Argument Lists Differ In Length
I'm trying to emend a JNI function that takes a string argument from the java layer. Initially, the java code from the .java file was: callJNIMethod(); I'm trying to change it s
Solution 1:
You went astray by editing the .h file. Changes to native methods should begin in your Java source.
The .h file should be generated by javah
from the compiled .class file. You can set up your build system to re-run javah
with each build. That way you'll see right away if the native method implementations no longer match the native declarations in your Java source.
Post a Comment for "Jni Method: Formal Argument Lists Differ In Length"