Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-10098

scala 2.12.1 runner tries to use unset $JAVA_HOME

    Details

      Description

      If environment variable JAVA_HOME is unset (like it's supposed to be) then when scala and scalac get to these lines added in bfa7ade0db ...

        # Note that the version numbers go 1.7, 1.8, 9, 10, ...
        java_release="$(cat $JAVA_HOME/release | grep JAVA_VERSION)"
      

      ...it's the empty string and that translates into `cat /release` which obviously doesn't exist. So,

      % /p/inst/scala-2.12.1/bin/scala
      cat: /release: No such file or directory
      Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112).
      Type in expressions for evaluation. Or try :help.
       
      scala>
      

        Attachments

          Activity

            People

            • Assignee:
              retronym Jason Zaugg
              Reporter:
              extempore Paul Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: