Error in finding Java_HOME with Gradle build using STS

Hello There,

This question is for those who use eclipse /STS for gradle development:

When I am building Gradle I get :

Cause: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"

Now I am using all default Gradle option so not sure what going wrong.

I also want to know what GUI people use for Gradle development or it is mostly command line based.

Thanks Priyanka

Have a look here: https://issuetracker.springsource.com/browse/STS-2276

Seems, they resolved it (I did not find the time to test it)