Code

Report JVM version
authorishmal <ishmal@users.sourceforge.net>
Tue, 11 Mar 2008 15:46:22 +0000 (15:46 +0000)
committerishmal <ishmal@users.sourceforge.net>
Tue, 11 Mar 2008 15:46:22 +0000 (15:46 +0000)
src/bind/javabind.cpp

index fe019a219e05b85d208f03c5d81aa23dd4886ac7..3d68bdc15872d36b3f1be50b6c3196fde1ad22eb 100644 (file)
@@ -641,6 +641,12 @@ bool JavaBinderyImpl::loadJVM()
         return false;
         }
 
+    //get jvm version
+    jint vers = env->GetVersion();
+    int versionMajor = (vers>>16) & 0xffff;
+    int versionMinor = (vers    ) & 0xffff;
+    msg("Loaded JVM version %d.%d", versionMajor, versionMinor);
+
     if (!registerNatives("org/inkscape/cmn/ScriptRunner",
              scriptRunnerMethods))
         {