From 19e851d042cb9e69fe9cb29df1c410b0f5db8942 Mon Sep 17 00:00:00 2001 From: ishmal Date: Tue, 11 Mar 2008 15:46:22 +0000 Subject: [PATCH] Report JVM version --- src/bind/javabind.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)) { -- 2.30.2