JNI. JNI: comment utiliser une hashmap. Tips - How to use of HashMap. HashMap (Java 2 Platform SE v1.4.2) Conteneurs : HashMap. CallObjectMethod failed in returning. Full code example. JNI Functions. JNI Functions Chapter 4 This chapter serves as the reference section for the JNI functions. It provides a complete listing of all the JNI functions. It also presents the exact layout of the JNI function table.
Note the use of the term “must” to describe restrictions on JNI programmers. For example, when you see that a certain JNI function must receive a non-NULL object, it is your responsibility to ensure that NULL is not passed to that JNI function. As a result, a JNI implementation does not need to perform NULL pointer checks in that JNI function. A portion of this chapter is adapted from Netscape’s JRI documentation. The reference material groups functions by their usage. Interface Function Table Each function is accessible at a fixed offset through the JNIEnv argument.
Typedef const struct JNINativeInterface *JNIEnv; The VM initializes the function table, as shown by Code Example 4-1. Note that the function table can be shared among all JNI interface pointers. Code Example 4-1 GetVersion. CallObjectMethod. Calling Java Methods. CallBooleanMethod.