Hi!
I’m having a bit of a hardtime installing Gradle on my Windows 10 laptop.
-
I’ve unziped the Gradle 4.2.1 zip to ‘C:\Gradle’
-
I’ve added the C:\Gradle\gradle-4.2.1\bin to my System’s Path environment variable
-
I’ve checked that my javaw.exe and java.exe are at my %JAVA_HOME%\bin\ (%JAVA_HOME% points to where I’ve installed my JDK)
-
I’ve run the command ‘gradle -v’ to check if it is working
-
I get prompted with an error:
C:\Windows\System32>gradle -v
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_131;
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.