Reputation: 31
I have one function in Java with signature:
public static double[] getData()
And I want to get the method id of this function from the JNI interface using GetMethodID
function.
For that I have mentioned in function signature parameter as following:
"()[D"
But this is not working and I get exception as Method Not Found(return null).
Upvotes: 2
Views: 1029
Reputation: 7620
You need to call GetStaticMethodID
, instead of GetMethodID
, as your method is a static one.
Upvotes: 3