2

在我的项目中,我们正在评估系统的 SONAR 测试,我下载了 Sonar Eclipse 插件,我已经在我的 Maven 中说明了。最后我下载了 3.7 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

有人可以就这个问题给我建议,拜托。

4

1 回答 1

0

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

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

wrapper.java.command=java

或者

wrapper.java.command=%JAVA_HOME%/bin/java
于 2013-11-15T11:05:21.307 回答