In eclipse, the installed JREs having only JDK1.6 and nothing else. But on building the project using gradle, i'm getting the following error.
Caused by: : 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 (x86)\Java\jre7"
I found some solutions over net the the ant might not have the "tools.jar". I tried adding "tools.jar" to the Global Entries of Ant runtime environment. But still the problem exists.
Can anyone help me fix this ?