gpt4 book ai didi

java - 在我的项目中检查 Sonar?

转载 作者:行者123 更新时间:2023-11-29 08:56:41 25 4
gpt4 key购买 nike

在我所在的项目中,我们正在评估系统的SONAR测试,我下载了Sonar Eclipse插件,我已经在我的Maven中声明了。最后我下载了 3.7 Sonar small server。

sonar-3.7\bin\windows-x86-64

当我运行 StartSonar.bat 时我在控制台上收到此错误:

STATUS | wrapper  | 2013/11/14 10:26:55 | --> Wrapper Started as Console
STATUS | wrapper | 2013/11/14 10:26:55 | Launching a JVM...
INFO | jvm 1 | 2013/11/14 10:26:56 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 1 | 2013/11/14 10:26:56 | Could not create the Java virtual machine.
ERROR | wrapper | 2013/11/14 10:26:56 | JVM exited while loading the application.
STATUS | wrapper | 2013/11/14 10:27:00 | Launching a JVM...
INFO | jvm 2 | 2013/11/14 10:27:00 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 2 | 2013/11/14 10:27:00 | Could not create the Java virtual machine.
ERROR | wrapper | 2013/11/14 10:27:00 | JVM exited while loading the application.
STATUS | wrapper | 2013/11/14 10:27:04 | Launching a JVM...
INFO | jvm 3 | 2013/11/14 10:27:04 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 3 | 2013/11/14 10:27:04 | Could not create the Java virtual machine.
ERROR | wrapper | 2013/11/14 10:27:04 | JVM exited while loading the application.
STATUS | wrapper | 2013/11/14 10:27:08 | Launching a JVM...
INFO | jvm 4 | 2013/11/14 10:27:08 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 4 | 2013/11/14 10:27:08 | Could not create the Java virtual machine.
ERROR | wrapper | 2013/11/14 10:27:08 | JVM exited while loading the application.
STATUS | wrapper | 2013/11/14 10:27:13 | Launching a JVM...
INFO | jvm 5 | 2013/11/14 10:27:13 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 5 | 2013/11/14 10:27:13 | Could not create the Java virtual machine.
ERROR | wrapper | 2013/11/14 10:27:13 | JVM exited while loading the application.
FATAL | wrapper | 2013/11/14 10:27:13 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2013/11/14 10:27:13 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2013/11/14 10:27:13 | <-- Wrapper Stopped

请有人可以就此问题向我提供建议。

最佳答案

您是否在同一台电脑/服务器上安装了 JDK? JAVA_HOME 是否在您的环境变量中声明并添加到 PATH 中?

sonar-3.7\conf\wrapper.conf 呢?你必须找到类似的东西

wrapper.java.command=java

wrapper.java.command=%JAVA_HOME%/bin/java

关于java - 在我的项目中检查 Sonar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19981822/

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