Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1232

gradle.bat fails when JAVA_HOME has a trailing backslash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.2

      Description

      gradle.bat reports an error when JAVA_HOME is set to the following:

      C:\Progra~1\Java\jdk1.6.0_21\
      

      Error reported:

      ERROR: JAVA_HOME is set to an invalid directory: C:\Progra~1\Java\jdk1.6.0_21\
      
      Please set the JAVA_HOME variable in your environment to match the
      location of your Java installation.
      

      Workaround is to remove the trailing backslash from JAVA_HOME.

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            tkhoven Taufiq Hoven
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: