I have the following line in my build.gradle
sourceCompatibility = 1.8
And when I compile it, the following error occurs:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> invalid source release: 1.8
Setting JAVA_HOME to short filename didn't help.
How to build with Gradle under Java 8 under Windows?
UPDATE
C:\>echo %JAVA_HOME%
C:\PROGRA~1\Java\jdk1.8.0_91
C:\>dir %JAVA_HOME%
COPYRIGHT README.html THIRDPARTYLICENSEREADME.txt db javafx-src.zip lib src.zip
LICENSE THIRDPARTYLICENSEREADME-JAVAFX.txt bin include jre release