Uploaded image for project: 'SET - Setups'
  1. SET - Setups
  2. SET-173

JOC installer should set Jetty's environment variable JAVA properly

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.12.8, 1.12.9
    • 1.12.10
    • None
    • Linux

    Description

      Current Situation

      • The JOC installer writes one of the following files to set some environment variables such as JAVA which are read by Jetty.
        • /etc/default/joc (if installer has root permissions)
        • /$HOME/.jocrc (if installer doesn't have root permissions)
      • If Jetty doesn't find a Java environment then the variable JAVA is used as fallback.
        This variable is set by the installer with the Java which is used during the setup but a typo ('}') prevents this variable from being used
        example of current situation
        test -x "/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/jre}/bin/java" && JAVA="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/jre/bin/java"
        

      Desired Behavior

      The typo ('}') should correct so that JAVA can be used as fallback.

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Kanika Agrawal Kanika Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: