You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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) is not 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:

  • Consider the JS7 - How To - Apply Java Options article that 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"


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



  • No labels