I am trying to set up the Sonarqube for my project, but when I start to generate a build, I get the following error:
ERROR: JAVA_HOME exists but does not point to a valid Java home
folder. No "\bin\java.exe" file can be found there.
The SonarQube Scanner did not complete successfully
I check some docs but none of them helps. For the JAVA_HOME environment variable, I point it to be C:\Program Files (x86)\Java\jdk1.8.0_111
I also double check it by using powershell java -version
command. It also gives me the same answer: java version "1.8.0_111"
. Anyone knows how to solve the problem?
Thanks.
Ensure that JAVA_HOME is pointing JDK .