JAVA_HOME 的问题

2022-01-16 00:00:00 environment-variables java

我正在尝试运行 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

相关文章