Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-778

run script should try java executable from JAVA_HOME first

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.2
    • 0.7.3, 0.8.0
    • None
    • None

    Description

      See https://groups.google.com/d/msg/spark-users/uuw2e9d1l74/_bCyDfq6dywJ;

      It looks like the script tries to run `java` first and falls back on `$JAVA_HOME/bin/java` only if `java` cannot be found. This should probably be the other way around, trying $JAVA_HOME first. This is important for supporting users with multiple JDKs.

      We should probably do the same thing for $SCALA_HOME, checking for a user-supplied SCALA_HOME before falling back on `scala`.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            joshrosen Josh Rosen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment