Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-289

Improve error message when JAVA_HOME points to an invalid JRE/JDK installation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.4
    • 1.3.5
    • Core features
    • None

    Description

      Buildr uses the JAVA_HOME environment variable for a number of core tasks. However, if that variable does not point to a valid JDK, the result will be a failure at some point with a generally confusing error message (usually something on the order of " /bin/java does not exist"). We should actually check to make sure that JAVA_HOME is valid before attempting to use it for the first time. This check could be as simple as looking for rt.jar and a few of the executables.

      Attachments

        Activity

          People

            djspiewak Daniel Spiewak
            djspiewak Daniel Spiewak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: