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

Running gradle.bat gives "The system cannot find the path specified" error in windows.

    XMLWordPrintable

    Details

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

      Description

      When I ran the gradle -v in the windows cmd shell, I am getting "The system cannot find the path specified" error.
      NOTE: I have properly set the GRADLE_HOME and the path as given in the gradle documentation.

      Looks like this is only a problem in my Windows XP 5.1 machine since when I ran it in Windows 7 it worked fine.

      Temp Fix that works for me:

      After looking inside the gradle.bat, the output of :fixpath call returns a wrong jdk path even though the input is correct path. Doing the below fixes the issue (atleast for me)...

      from

      set JAVA_HOME=%_FIXPATH:~1%

      change to

      @rem set JAVA_HOME=%_FIXPATH:~1%

      This is a temp fix that worked for me but I am not sure how to fix this in general.

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            arun s.k Arun Shanmugam Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: