声纳运行程序:JAVA_HOME 存在但未指向有效的 Java 主文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24488823/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Sonar runner: JAVA_HOME exists but does not point to a valid Java home folder
提问by Abhishek
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.
情况:我在 Win XP 32 位系统上安装了 Sonarqube。我按照指示设置了所有路径。服务器在 localhost://9090 上打开得很好。
My JAVA_HOME is: C:\Program Files\Java\jdk1.7.0_60;
我的 JAVA_HOME 是:C:\Program Files\Java\jdk1.7.0_60;
ProblemWhen I run, sonar-runner.bat, I get the following error:
问题当我运行 sonar-runner.bat 时,出现以下错误:
ERROR: Java_Home exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be found here.
错误:Java_Home 存在但未指向有效的 Java 主文件夹。此处找不到“\bin\java.exe”文件。
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.
我尝试过的:我将 /bin 添加到路径中。我尝试了 /jre,然后是 /jre/bin(注意:所有这些都包含“/bin/java.exe”。
Is this due to some permissions issue of the Java (or Jdk) folder ?
这是由于 Java(或 Jdk)文件夹的某些权限问题吗?
采纳答案by Dave Newton
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.
此变量应为单个目录,而不是列表,并且不应有路径分隔符。