JNI needs both the jmethodID and return type. Changed API to