# 'gradle' is not recognized internal or external command

**URL:** <https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468>\
**Category:** Old Forum Archive\
**Created:** [September 23, 2014, 4:39am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468 "2014-09-23T04:39:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan\_Sarker](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rohan\_Sarker](https://discuss.gradle.org/u/Rohan_Sarker)\
**Post date:** [September 23, 2014, 4:39am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/1 "2014-09-23T04:39:00Z")

</div>

I had downloaded Gradle 2.1 from [http://www.gradle.org/](http://www.gradle.org/) and unpacked it in folder C:\Gradle\gradle-2.1-all

I am using Windows 7 (32 Bit OS) in DELL Vostro with Intel i5 Pentium.

I set GRADLE\_HOME as C:\Gradle\gradle-2.1-all and add to PATH = %GRADLE\_HOME%\bin

Command Summary is:

Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Dell\>gradle ‘gradle’ is not recognized as an internal or external command, operable program or batch file.

C:\Users\Dell\>cd…

C:\Users\>cd…

C:\>cd gradle

C:\Gradle\>cd gradle-2.1-all

C:\Gradle\gradle-2.1-all\>gradle -v ‘gradle’ is not recognized as an internal or external command, operable program or batch file.

C:\Gradle\gradle-2.1-all\>cd bin The system cannot find the path specified.

C:\Gradle\gradle-2.1-all\>gradle -v ‘gradle’ is not recognized as an internal or external command, operable program or batch file.

C:\Gradle\gradle-2.1-all\>echo path path

C:\Gradle\gradle-2.1-all\>echo %GRADLE\_HOME% C:\Gradle\gradle-2.1-all

C:\Gradle\gradle-2.1-all\>echo PATH PATH

C:\Gradle\gradle-2.1-all\>echo %PATH% C:\Python\Python34;C:\Python\Python34\Scripts;C:\ProgramData\Oracle\Java\javapa th;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\W indowsPowerShell\v1.0;C:\ant194\bin;C:\maven323\bin;C:\Java\jdk\_8u20\bin;C:\Jav a\groovy-binary-2.4.0-beta-3\groovy-2.4.0-beta-3\bin;C:\Python\Python34;;C:\Lua\ 5.1;C:\Lua\5.1\clibs;C:\Gradle\gradle-2.1-all\bin;C:\Ruby200\bin

C:\Gradle\gradle-2.1-all\>gradle ‘gradle’ is not recognized as an internal or external command, operable program or batch file.

C:\Gradle\gradle-2.1-all\>

Please help us in installing Gradle.

Regards Rohan Sarker +913324288069 / +917278539338 [www.rohansarker.com](http://www.rohansarker.com)

---

<div class="post-metadata">

**Author:** ![kons](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/kons/32/19_2.png) [@kons](https://discuss.gradle.org/u/kons)\
**Post date:** [September 23, 2014, 5:36am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/2 "2014-09-23T05:36:00Z")

</div>

Hi Rohan  
  
This tells me that the extraction of the zip didn’t work out. &nbsp;Or didnt go where you think…

> C:\Gradle\gradle-2.1-all\>cd bin&nbsp;  
> The system cannot find the path specified.&nbsp;

So even though you’ve correctly added %GRADLE\_HOME%\bin to the path, there is no bin directory in that folder to speak of.&nbsp;  
  
Can you do an **dir&nbsp;** in that directory, and worth double checking that the zip target put it in the right place.&nbsp;  
  
Kind regards  
  
Kon

---

<div class="post-metadata">

**Author:** ![Radim\_Kubacki](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/radim_kubacki/32/1032_2.png) [@Radim\_Kubacki](https://discuss.gradle.org/u/Radim_Kubacki)\
**Post date:** [September 23, 2014, 5:38am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/3 "2014-09-23T05:38:00Z")

</div>

Look carefully at the part where you do ‘cd bin’ to see the error message there. My guess is that you did not unpacked it correctly (or to the right place).

---

<div class="post-metadata">

**Author:** ![Rohan\_Sarker](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rohan\_Sarker](https://discuss.gradle.org/u/Rohan_Sarker)\
**Post date:** [September 24, 2014, 2:31am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/4 "2014-09-24T02:31:00Z")

</div>

Please let me tell you that bin folder exists in the path:

C:\Gradle\gradle-2.1-all\gradle-2.1\bin

There are two files in the bin Folder:

gradle File gradle Windows Batch File

Command Windows is:

Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Dell\>cd…

C:\Users\>cd…

C:\>cd Gradle

C:\Gradle\>cd gradle-2.1-all

C:\Gradle\gradle-2.1-all\>cd gradle-2.1

C:\Gradle\gradle-2.1-all\gradle-2.1\>cd bin

C:\Gradle\gradle-2.1-all\gradle-2.1\bin\>

Regards

Rohan Sarker

+913324288069 / +917278539338

[www.rohansarker.com](http://www.rohansarker.com)

---

<div class="post-metadata">

**Author:** ![Rohan\_Sarker](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rohan\_Sarker](https://discuss.gradle.org/u/Rohan_Sarker)\
**Post date:** [September 24, 2014, 2:41am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/5 "2014-09-24T02:41:00Z")

</div>

Gradle Installation successful.

Command Window is:

Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Dell\>cd…

C:\Users\>cd…

C:\>cd Gradle

C:\Gradle\>cd gradle-2.1-all

C:\Gradle\gradle-2.1-all\>cd gradle-2.1

C:\Gradle\gradle-2.1-all\gradle-2.1\>cd bin

C:\Gradle\gradle-2.1-all\gradle-2.1\bin\>gadl ‘gadl’ is not recognized as an internal or external command, operable program or batch file.

C:\Gradle\gradle-2.1-all\gradle-2.1\bin\>gadle ‘gadle’ is not recognized as an internal or external command, operable program or batch file.

C:\Gradle\gradle-2.1-all\gradle-2.1\bin\>gradle :help

Welcome to Gradle 2.1.

To run a build, run gradle …

To see a list of available tasks, run gradle tasks

To see a list of command-line options, run gradle --help

BUILD SUCCESSFUL

Total time: 13.898 secs C:\Gradle\gradle-2.1-all\gradle-2.1\bin\>gradle -v

------------------------------------------------------------ Gradle 2.1 ------------------------------------------------------------

Build time:

2014-09-08 10:40:39 UTC Build number: none Revision:

e6cf70745ac11fa943e19294d19a2c527a669a53

Groovy:

2.3.6 Ant:

Apache Ant™ version 1.9.3 compiled on December 23 2013 JVM:

1.8.0\_20 (Oracle Corporation 25.20-b23) OS:

Windows 7 6.1 x86

C:\Gradle\gradle-2.1-all\gradle-2.1\bin\>

Regards

Rohan Sarker

+913324288069 / +917278539338

[www.rohansarker.com](http://www.rohansarker.com)

---

<div class="post-metadata">

**Author:** ![kons](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/kons/32/19_2.png) [@kons](https://discuss.gradle.org/u/kons)\
**Post date:** [October 6, 2014, 9:11pm UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/6 "2014-10-06T21:11:00Z")

</div>

Hi Rohan  
Did you get this fixed up?  
  
I notice in your reply Gradle was installed to &nbsp;  
C:\Gradle\gradle-2.1-all\gradle-2.1\bin  
  
but in your original message you had your path set as  
  
C:\Gradle\gradle-2.1-all\>echo %PATH%&nbsp;  
C:\Python\Python34;C:\Python\Python34\Scripts;C:\ProgramData\Oracle\Java\javapa&nbsp;  
th;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\W&nbsp;  
indowsPowerShell\v1.0;C:\ant194\bin;C:\maven323\bin;C:\Java\jdk\_8u20\bin;C:\Jav&nbsp;  
a\groovy-binary-2.4.0-beta-3\groovy-2.4.0-beta-3\bin;C:\Python\Python34;;C:\Lua&nbsp;  
5.1;C:\Lua\5.1\clibs;_ **C:\Gradle\gradle-2.1-all\bin** _;C:\Ruby200\bin&nbsp;  
  
Your path has C:\Gradle\gradle-2.1-all\bin should be&nbsp;C:\Gradle\gradle-2.1-all\gradle-2.1\bin  
  
Regards  
  
Kon

---

<div class="post-metadata">

**Author:** ![Sundar\_Rajan](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Sundar\_Rajan](https://discuss.gradle.org/u/Sundar_Rajan)\
**Post date:** [December 29, 2014, 3:55am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/7 "2014-12-29T03:55:00Z")

</div>

[Gradle.org](http://Gradle.org) site suggests to create environmental variable GRADLE\_HOME set to gradle-XXX/ bin. But it works only in bin folder. I just opened environmental variables window from computer properties,

1. select the $path variable.

2. Copied the content of value in notepad,

3. Manually added the gradle-XXX/ bin directory. copy& paste it value box. Now I am all set. No need restart the command prompt. The gradle command works from any directory now.

---

<div class="post-metadata">

**Author:** ![wojder](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/wojder/32/1540_2.png) [@wojder](https://discuss.gradle.org/u/wojder)\
**Post date:** [January 13, 2015, 1:45pm UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/8 "2015-01-13T13:45:00Z")

</div>

I got the same problem… Gradle is working form /bin directory:

Gradle 2.2.1 ------------------------------------------------------------

Build time:

2014-11-24 09:45:35 UTC Build number: none Revision:

6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a

Groovy:

2.3.6 Ant:

Apache Ant™ version 1.9.3 compiled on December 23 2013 JVM:

1.8.0\_25 (Oracle Corporation 25.25-b02) OS:

Windows 8.1 6.3 amd64

but outside the folder I have got message:

‘gradle’ is not recognized as an internal or external command, operable program or batch file.

my enviromental variable is set: name: GRADLE\_HOME value: C:\Program Files\Gradle\gradle-2.2.1\bin

Have U got any idea?

---

<div class="post-metadata">

**Author:** ![Sundar\_Rajan1](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Sundar\_Rajan1](https://discuss.gradle.org/u/Sundar_Rajan1)\
**Post date:** [January 13, 2015, 2:07pm UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/9 "2015-01-13T14:07:00Z")

</div>

wojder

There is no need to create separate variable for GRADLE\_HOME. Open “path” env variable and add “C:\Program Files\Gradle\gradle-2.2.1\bin” at the end. It should work…

---

<div class="post-metadata">

**Author:** ![Sundar\_Rajan1](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Sundar\_Rajan1](https://discuss.gradle.org/u/Sundar_Rajan1)\
**Post date:** [January 13, 2015, 2:07pm UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/10 "2015-01-13T14:07:00Z")

</div>

wojder

There is no need to create separate variable for GRADLE\_HOME. Open “path” env variable and add “C:\Program Files\Gradle\gradle-2.2.1\bin” at the end. It should work…

---

<div class="post-metadata">

**Author:** ![wojder](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/wojder/32/1540_2.png) [@wojder](https://discuss.gradle.org/u/wojder)\
**Post date:** [January 13, 2015, 3:25pm UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/11 "2015-01-13T15:25:00Z")

</div>

Thank U for help. Gradle is working from Git bash and windows cmd, but I got strange situation now - gradle is recognizable in /bin folder from Android Studio terminal but outside that folder I got:

‘gradle’ is not recognized as an internal or external command, operable program or batch file.

My shell path in Android Studio terminal: cmd.exe

Whats wrong with it?

---

<div class="post-metadata">

**Author:** ![Sundar\_Rajan1](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Sundar\_Rajan1](https://discuss.gradle.org/u/Sundar_Rajan1)\
**Post date:** [January 13, 2015, 3:40pm UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/12 "2015-01-13T15:40:00Z")

</div>

1. Create env variable GRADLE\_HOME=C:\Program Files\Gradle\gradle-2.2.1 2. Edit env variable path=$GRADLE\_HOME\bin. It should resolve your issues.

---

<div class="post-metadata">

**Author:** ![adetunji\_adegbite](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@adetunji\_adegbite](https://discuss.gradle.org/u/adetunji_adegbite)\
**Post date:** [February 23, 2015, 8:14am UTC](https://discuss.gradle.org/t/gradle-is-not-recognized-internal-or-external-command/7468/13 "2015-02-23T08:14:00Z")

</div>

I am having the same issue, I did all the settings both for GRADLE\_HOME and path, what i discovered is that gradle -v command works well in git bash shell but does not work in windows cmd prompt. Working from bash for now Thanks
