[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
|Reporter:||Arun Shanmugam Kumar||Assignee:||Hans Dockter|
When I ran the gradle -v in the windows cmd shell, I am getting "The system cannot find the path specified" error.
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)...
@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.