我正在尝试运行 sonar runner,我的项目目录中有 bat 文件,当我通过命令提示符导航到它并尝试运行它时,我收到一条错误消息
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
错误:JAVA_HOME 存在但未指向有效的 Java 主目录文件夹.在那里找不到injava.exe"文件.
ERROR: JAVA_HOME exists but does not point to a valid Java home folder. No "injava.exe" file can be found there.
如果我回显 Java_Home 的路径,它也指向了
If i echo the path of Java_Home it is pointing too
$C:Program Files (x86)Javajdk1.7.0_15in
$C:Program Files (x86)Javajdk1.7.0_15in
这条路径是正确的还是需要改变?
Is this path correct or does it need to be changed?
谢谢
它应该指向 java 根文件夹,在你的情况下指向 C:Program Files (x86)Javajdk1.7.0_15代码>
it should point to the java root folder, in your case to C:Program Files (x86)Javajdk1.7.0_15
这篇关于JAVA_HOME 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!