Sonar runner: JAVA_HOME exists but does not point to a valid Java home folder

不羁岁月 提交于 2019-12-06 03:56:34

问题


Situation : I installed Sonarqube on a Win XP 32-bit system. I set all paths as instructed. The server opens up well at localhost://9090.

My JAVA_HOME is: C:\Program Files\Java\jdk1.7.0_60;

Problem When I run, sonar-runner.bat, 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 here.

What I tried: I added /bin to the path. I tried /jre, and then /jre/bin (Note: all of them contain the "/bin/java.exe" within them.

Is this due to some permissions issue of the Java (or Jdk) folder ?


回答1:


Remove the semicolon ; from the end; right now it's being included in the constructed path.

This variable is expected to be a single directory, not a list, and should not have a path separator.



来源:https://stackoverflow.com/questions/24488823/sonar-runner-java-home-exists-but-does-not-point-to-a-valid-java-home-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!