program-o-steve
program-o-steve

Reputation: 2678

Can I check the JNI version from UNIX shell?

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

Answers (2)

Danijel
Danijel

Reputation: 143

For people wondering, write the number returned by GetVersion out in hex to easily interpret its meaning.

Upvotes: 1

bobby
bobby

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

Related Questions