gpt4 book ai didi

java - 无法执行 Java 命令。访问被拒绝。 (0x5)

转载 作者:搜寻专家 更新时间:2023-11-01 01:05:53 25 4
gpt4 key购买 nike

启动 StartSonar.bat 时出现以下错误,我在 wrapper.config 文件中添加了 wrapper.java.command=C:/Program Files/Java/jdk1.8.0_121/bin

Critical error: wait for JVM process failed
--> Wrapper Started as Console
Launching a JVM...
Unable to execute Java command. Access is denied. (0x5)

Advice:
Access denied errors when attempting to launch the Java process are
usually caused by strict access permissions assigned to the directory
in which Java is installed.

最佳答案

快速谷歌搜索可以让您轻松找出问题。

您的包装器配置几乎是正确的。打开文件并将 wrapper.java.command 配置键编辑为:

# Path to JVM executable. By default it must be available in PATH.
# Can be an absolute path, for example:
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_121\bin\java
#wrapper.java.command=java

如您所见,路径中缺少 \java

希望对您有所帮助!欢呼和快乐的编码。

关于java - 无法执行 Java 命令。访问被拒绝。 (0x5),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48864851/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com