Problem

After installation of JOC Cockpit for Windows the respective Windows Service does not start.

Analysis

The problem might occur due to the fact that the Java Runtime Environment (JRE) has not been found. More precisely the JAVA_HOME environment variable is not set for the account that is used for the JOC Cockpit Windows Service. If not otherwise specified during installation, the system account is used.

Users might observe that the installation procedure works fine as it is performed from a user account. However, with the system account being used, Java cannot be found on start-up of the Windows Service due to the missing environment variable.

Resolution

There are a number of ways how resolve the issue:

  • Refer to the JS7 - How To - Apply Java Options article which explains how to set the JAVA_HOME environment variable for a Windows Service. 
  • As an alternative the following script can be used:

    Set Java Location
    C:\Program Files\sos-berlin.com\JS7\JOC\service\set_java_home_for_jetty_windows_service.cmd "C:\Program Files\Java\jdk11.0.13_8"


    The path to the JDK or JRE is specified as the only argument to the script.



  • No labels