Reputation: 2678
How can I check which version of JNI I / user is currently using ? Is there any command that i directly execute on the shell prompt ?
Upvotes: 3
Views: 6016
Reputation: 143
For people wondering, write the number returned by GetVersion out in hex to easily interpret its meaning.
Upvotes: 1
Reputation: 2789
I dont know of a way from the shell. You could just open up the jni.h file and see the version or if you want to do it through a program, something like
#ifdef JNI_VERSION_1_4
printf("Version is 1.4 \n");
#endif
You can also use the JNI function jint GetVersion(JNIEnv *env);
Upvotes: 4