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

Wrong JAVA_HOME setting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-milestone-3
    • Fix Version/s: None

      Description

      After installing I got error

      ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java

      Please set the JAVA_HOME variable in your environment to match the
      location of your Java installation.

      But I have correct JAVA_HOME.
      I went to /usr/bin/gradle and found some strange place

      export JAVA_HOME=/usr/lib/jvm/default-java
      export GRAILS_HOME=/usr/share/gradle

      1. Attempt to set JAVA_HOME if it's not already set.
        if [ -z "$JAVA_HOME" ] ; then

      I think it is something wrong with first line.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            hudvin Vadym
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: