Location of the JVM for Windows
- The 64 bit JobScheduler needs a 64 bit JVM and the 32 bit JobScheduler needs a 32 bit JVM (jvm.dll) to run.
- To determine where the location of this file is, JobScheduler retrieves the active java version from the Windows registry:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion
- This version contains the key RuntimeLib which will determine the location of the JVM used by JobScheduler (e.g. HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7\RuntimeLib).
- You can use a different JVM specifying the option vm in the section java in the configuration file ./config/sos.ini.
Example
... [java] vm = C:\Program Files\Java\jre7\bin\client\jvm.dll ...
Starting from release 1.8 the following applies
Instead of the registry you can force that the JobScheduler use the JAVA_HOME environment variable if you configure the ./config/sos.ini with
... [java] vm = JAVA_HOME ...
Then the JobScheduler looks first in %JAVA_HOME%/bin/server and then in %JAVA_HOME%/bin/client to find the jvm.dll