I need to run gradle build for one specific with JDK7 on windows in cygwin. In system properties JDK6 is set. And it should be used for building other projects.
I've tried to set in gradle.properties
org.gradle.java.home=/d/Java/jdk1.7.0_67/bin
/cygpath is mapped on /
but I get
Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: /d/Java/jdk1.7.0_67/bin
Also I've tried
d:\\Java\\jdk1.7.0_67\\bin\\
but get almost the same error
Java home is the directory above the bin
directory.