1

i am trying to run sonar runner, i have the bat file in my project directory and when i navigate to it via command promptt and try and run it i get an error message saying

ERROR: JAVA_HOME exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be found there.

If i echo the path of Java_Home it is pointing too

$C:\Program Files (x86)\Java\jdk1.7.0_15\bin

Is this path correct or does it need to be changed?

Thanks

2
  • 2
    I think Java home is without bin, but then you need to add %java_home%/bin to your path varible Commented May 8, 2013 at 13:28
  • The JAVA_HOME exists, and I've tried all combinations to set its path i.e. jdk, jre, jdk/bin, jre/ and jre/bin. Still, I get the same error when I run sonar-runner.bat. I've also removed all traces of older JDKs in my system. Commented Jun 30, 2014 at 10:07

4 Answers 4

5

it should point to the java root folder, in your case to C:\Program Files (x86)\Java\jdk1.7.0_15

Sign up to request clarification or add additional context in comments.

Comments

2

Please Restrict your path to C:\Program Files (x86)\Java\jdk1.7.0_15 only (i.e. no bin).

Comments

1

Given that it's looking for \bin\java.exe within JAVA_HOME, I suspect you ought to set it to C:\Program Files (x86)\Java\jdk1.7.0_15 - without the bin part.

Comments

0

Take a look at this Stuff

Configure Java environment on Windows

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.