summaryrefslogtreecommitdiffstats
path: root/src/bind/javabind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bind/javabind.cpp')
-rw-r--r--src/bind/javabind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp
index fe019a219..3d68bdc15 100644
--- a/src/bind/javabind.cpp
+++ b/src/bind/javabind.cpp
@@ -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))
{