Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6108

Service wrapper should add selected JAVA_HOME also to the PATH variable.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.6
    • 4.1.8, 4.2.3
    • karaf
    • None

    Description

      When running applications in Karaf that spawn Java processes, the currently used path to find Java is not necessarily available in the context of Karaf. Karaf itself will be started fine, but when attempting to spawn a child process, the Java executable may not be found unless the system user's context has explicitly configured the path in $PATH.

      In order to be sure that all possible child processes have access to the same Java that also runs Karaf, I suggest to add 2 lines to the wrapper templates ( karaf-wrapper-java*.conf )

      set.default.PATH_WITH_JAVA=%JAVA_HOME%%WRAPPER_FILE_SEPARATOR%bin%WRAPPER_PATH_SEPARATOR%%PATH%.
      set.PATH=%PATH_WITH_JAVA%

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              jkindler Jürgen Kindler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: