Does anyone know how to get SOS Job Scheduler version 1.13 working with an AdoptOpenJDK JDK 8 on Windows? The Job Scheduler itself seems to work, but the JOC tool won't run, failing to find a JVM.
The Windows Service for JOC gets stuck in the "Starting" state, and the following appears in its log file:
[2019-12-08 12:14:36] [info] [ 2168] Commons Daemon procrun (1.0.15.0 64-bit) started
[2019-12-08 12:14:37] [info] [ 2168] Running 'sos_joc' Service...
[2019-12-08 12:14:37] [error] [ 2916] Unable to find Java Runtime Environment.
I'm currently running SOS Job Scheduler 1.11, and was able to get that running by setting the vm
properties in config\factory.ini
and config\sos.ini
to point to the bin\server\jvm.dll
inside the AdoptOpenJDK installation. I set the same things in the 1.13 Job Scheduler configuration. But I don't see anywhere in the "Jetty" config files for JOC 1.13 to make a similar setting.
I have added the AdoptOpenJDK JRE directory to the system %PATH%
as suggested by the SOS config files, but that had no apparent effect. I also set the system %JAVA_HOME%
and %JRE_HOME%
to point to AdoptOpenJDK; also no effect. I'd rather not do these things anyway, because these are global settings which would affect other applications also running on this server.
We're not running Oracle JDK/JREs because of Oracle's new Java licensing terms, where it's no longer free-as-in-beer for production use.
This is on Windows Server 2016 Datacenter on Azure.