在我的项目上检查声纳?

时间:2013-11-14 15:36:05

标签: java eclipse maven sonarqube

在我的项目中,我们正在评估系统的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

有人可以告诉我这个问题。

1 个答案:

答案 0 :(得分:0)

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

那么sonar-3.7 \ conf \ wrapper.conf呢?你必须找到像

这样的东西
wrapper.java.command=java

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