If you pass a Java data structure, it must be a Java object. You can create it on the JNI side or populate the parameter object passed to Java JNI. (For example, Java can create new byte[4096]and pass it to JNI functions to store the result there.)
, Java . int/long Java. Java , ( C). , JNI . finalize(), (!).