Unable to build Projectin Eclipse - JDK set correctly

Eclipse doesn’t use JAVA_HOME. You have several options:

  • start Eclipse with Java 8 (edit eclipse.ini)
  • configure the right org.gradle.java.home in gradle.properties in your Gradle user home
  • write some code in your build that finds the correct JDK and configures the JavaCompile tasks to use that JDK instead
1 Like