Version Information
GetVersion
jint GetVersion(JNIEnv *env);
Returns the version of the native method interface. For Java SE Platform 21 and later, it returns JNI_VERSION_21. The following table gives the version of JNI included in each release of the Java SE Platform (for older versions of JNI, the JDK release is used instead of the Java SE Platform):
Java SE Platform JNI Version
1.1 JNI_VERSION_1_1
1.2 JNI_VERSION_1_2
1.3 JNI_VERSION_1_2
1.4 JNI_VERSION_1_4
5.0 JNI_VERSION_1_4
6 JNI_VERSION_1_6
7 JNI_VERSION_1_6
8 JNI_VERSION_1_8
9 JNI_VERSION_9
10 JNI_VERSION_10
11 JNI_VERSION_10
12 JNI_VERSION_10
13 JNI_VERSION_10
14 JNI_VERSION_10
15 JNI_VERSION_10
16 JNI_VERSION_10
17 JNI_VERSION_10
18 JNI_VERSION_10
19 JNI_VERSION_19
20 JNI_VERSION_20
21+ JNI_VERSION_21
LINKAGE:
Index 4 in the JNIEnv interface function table.
PARAMETERS:
env: the JNI interface pointer, must not be NULL.
RETURNS:
Returns the major version number in the higher 16 bits and the minor version number in the lower 16 bits.
Version Constants