How to install gradle on WINDOWS 10

I tried some paths using the path, but it did not work, because when I edit the path in the system variables, it opens all paths that are not like tutorials, where I should just put:% GRADLE_HOME% \ bin at the end.

enter image description here

enter image description here

+13
gradle
source share
5 answers

Download Gradle and unzip it to where you want to install it.

Then in Windows Search, find "System", and then select: "System" (control panel)

Click on the link "Advanced system settings."

Select environment variables

Then click the "Create" button under the user-defined variable and add GRADLE_HOME to the variable name and the path pointing to the root directory of the extracted files from Gradle to the variable value.

GRADLE_HOME

In the "System Variables" section, select "Path" and click the "Edit" button. In the next window, click the "Create" button and add the path to the bin directory of the extracted files from Gradle.

Change variabl path

+18
source share

If you are a Scoop user, then Scoop will be the best option for installing tools that you know and love. Scope is just a command line installer.

just run this scoop install gradle

But first you need to install scoop using powershell command

 iex (new-object net.webclient).downloadstring('https://get.scoop.sh') 

Note: if you receive an error message, you may need to change the execution policy (i.e. enable Powershell) with the following command

 Set-ExecutionPolicy RemoteSigned -scope CurrentUser 
+7
source share

Download Gradle and unzip it to where you want to install it. Then open the USER variable window for your user (similar to what you are showing) and create the GRADLE_HOME variable with a path pointing to the root directory of your downloaded Gradle distribution. Then add it to your PATH in USER variables with something like:

 %PATH%;%GRADLE_HOME%\bin 

Note that I added the existing PATH variable to the new one. You do not want to delete what is already there. In addition, your image shows something else added to the path. You want to add this to the line above, something like:

 %PATH%;%YOUR_OTHER_STUFF%;%GRADLE_HOME%\bin 

So that too will not be lost.

This is what I have been doing on Windows for many years. Other options are to use something like http://sdkman.io/ ; however, this requires additional work on Windows, since it is really intended for operating systems with a real terminal.

+5
source share

If you are here and none of these answers "helped", try restarting the shell program. I just spent more than an hour, and I just had to restart the console window to get things done.

+1
source share

choco install gradle in / cmd shell.
Of course, first you need to install the chocolate bar

Chocolatey is a package manager for Windows.

0
source share

All Articles