Can I check the JNI version from UNIX shell?

java, java-native-interface, version

Solution

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);`

Problem

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 ?

Original source