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

karaf script doesn't start on Solaris if JAVA_HOME is not set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.3, 2.4.1, 4.0.0.M2, 4.0.0.M3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Solaris

      Description

      On Solaris the karat script fails with the error "JVM must be greater than 1.6" if JAVA_HOME is not set. (On 2.4 it also fails but with the message "exec: a tracked alias for /usr/bin/java: not found").

      This fails because the locateJava() function depends on the output of `type java` to set JAVA_HOME and determine what version of java it's using. On most platforms type java returns something like "java is /path/to/java", but on solaris it returns "java is a tracked alias for /path/to/java"

      The fix just requires a change to the expression used to chop off the leading text. I will submit a pull request for this.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              kearls Kevin Earls
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: