summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d75cd2)
raw | patch | inline | side by side (parent: 7d75cd2)
author | ishmal <ishmal@users.sourceforge.net> | |
Tue, 11 Mar 2008 15:46:22 +0000 (15:46 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Tue, 11 Mar 2008 15:46:22 +0000 (15:46 +0000) |
src/bind/javabind.cpp | patch | blob | history |
diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp
index fe019a219e05b85d208f03c5d81aa23dd4886ac7..3d68bdc15872d36b3f1be50b6c3196fde1ad22eb 100644 (file)
--- a/src/bind/javabind.cpp
+++ b/src/bind/javabind.cpp
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))
{