Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9286

install-service.bat has a broken classpath variable

    Details

      Description

      Issue: running IDM as a Windows service fails when the service was installed with the install-service.bat we provide (in openidm\bin). It claims to install successfully, but fails to start, and generates an unhelpful error.

      Cause: We appear to be setting the classpath variable incorrectly. We set it it to bin/launcher.jar;bin/felix.jar, but classpath needs to be full paths according to Java's documentation. If we don't set classpath, launcher.bat /install defaults successfully to C:\path\to\openidm\bin\* and the service then launches and runs IDM without further issues.

      Notes: Changing the classpath allows the service to successfully launch, and appears to run successfully as Local System, which may also solve OPENIDM-5288 (namely, it may run fine with the Local System service account, and the needing to switch to Administrator was a red herring).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joy.feng Joy Feng [X] (Inactive)
                Reporter:
                nabil.maynard Nabil Maynard
                QA Assignee:
                Nabil Maynard
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: