Buildship doesn't read variable JAVA_HOME


(Say Seakleng) #1

Dear guys,

I have issues to run Eclipse Buildship tasks because the plugin doesn’t read variable JAVA_HOME.

My system configuration:
JRE_HOME=C:\Program Files\Java\jdk1.8.0_131\jre
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131

When I execute tasks:
:compileJava FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileJava’.

Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation.