Hi,
Trying to get Gradle to build my project (using Eclipse Neon), but I’ve run into some interesting issues. I did some research and after reading through this thread, i discovered that the results of using gradlew -version in command line and println System.getProperty(“java.home”) in build.gradle produced different results. Specifically, the command line returned Java 1.8, while build.gradle printed Java 1.6. Java 1.6 is the Java version is want to use, though it seems whatever causes this discrepancy also causes the project to fail when building it. It’s also worth noting that while the post I linked was solved by modifying a properties file, my properties file didn’t have any commands to set the Java version, and adding such a command made no difference.