Gradle installation error

I’m trying to install gradle on my machine. I get this error

I have set my path and gradle home.
GRADLE_HOME = C:\Program Files\gradle-2.11
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_79
This is my java_opts = -Xms256 - Xmx512m( i tried changing 512 to 1024 I got the same error)
Gradle_opts = Xmx512m

I tried everything but nothing seems to work. I have ran out of options now.



I haven’t worked on windows in a while now… however

have you tried putting both the environment variables in quotes?


GRADLE_HOME = "C:\Program Files\gradle-2.11"
JAVA_HOME = "C:\Program Files\Java\jdk1.7.0_79"


Hi eanath,

You said you java opts are
-Xms256 - Xmx512m
There’s a space in between the second “-” and “Xmx512m” in this.
Isn’t that the issue? It makes sense by the error of it not recognizing “-” as a standalone option.

Good luck,