[GRADLE-1256] Running gradle.bat gives "The system cannot find the path specified" error in windows. Created: 18/Dec/10  Updated: 04/Jan/13  Resolved: 04/Jan/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.9-rc-3
Fix Version/s: 0.9.2

Type: Bug
Reporter: Arun Shanmugam Kumar Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 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.


Generated at Wed Jun 30 11:50:55 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.