Gradle executable not found in Windows 7

This is the first time you use [Gradle] [1] using version 2.1.

I unzipped the zip file to the directory D:\JavaTools\gradle-2.1 . I updated the environment variables and restarted my machine. But this is the test result:

 Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administrator>ECHO %GRADLE_HOME% D:\JavaTools\gradle-2.1 C:\Users\Administrator>ECHO %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind owsPowerShell\v1.0\;%JAVA_HOME%\bin;%GRADLE_HOME%\bin C:\Users\Administrator>gradle -version 'gradle' is not recognized as an internal or external command, operable program or batch file. C:\Users\Administrator>d: D:\>cd D:\JavaTools\gradle-2.1 D:\JavaTools\gradle-2.1>gradle -version 'gradle' is not recognized as an internal or external command, operable program or batch file. D:\JavaTools\gradle-2.1>cd bin D:\JavaTools\gradle-2.1\bin>gradle -version ------------------------------------------------------------ Gradle 2.1 ------------------------------------------------------------ Build time: 2014-09-08 10:40:39 UTC Build number: none Revision: e6cf70745ac11fa943e19294d19a2c527a669a53 Groovy: 2.3.6 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.8.0_11 (Oracle Corporation 25.11-b03) OS: Windows 7 6.1 x86 D:\JavaTools\gradle-2.1\bin> 

I am really very confused. I just want to import the spring-framework source code from github into my Eclispe or IntelliJ. If you have other solutions, tell me! Thanks!!!!

+5
source share
2 answers

I had a similar problem. For some reason, the% GRADLE_HOME% system variable was not created.

echo %GRADLE_HOME% returned %GRADLE_HOME% , for example.

Therefore, I set the variable using setx, which comes with a gain of 7 and above. Download this one to use it in XP.

  • Run cmd.exe from the administrator.
  • Type setx GRADLE_HOME <path to gradle> /m

example setx GRADLE_HOME C:\Programming\gradle\gradle-2.4 /m

Reset cmd and check with echo %GRADLE_HOME% . Then add %GRADLE_HOME%\bin to your system path variable.

+8
source

(In Win 7,) Don't worry about% GRADLE_HOME% etc. Just copy your path, including the bin folder: C: \ gradle -2.14-all \ gradle -2.14 \ bin And paste it into your system variable path after the column;

0
source

Source: https://habr.com/ru/post/1204512/


All Articles