启动Sonar时出错

时间:2012-12-13 09:43:50

标签: intellij-idea sonarqube

我正在为我的项目使用SONAR。 使用“StartSonar.bat”启动Sonar时,它会抛出以下异常。

wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Error occurred during initialization of VM
jvm 1    | java/lang/NoClassDefFoundError: java/lang/Object
wrapper  | JVM exited while loading the application.
wrapper  | Launching a JVM...
jvm 2    | Error occurred during initialization of VM
jvm 2    | java/lang/NoClassDefFoundError: java/lang/Object
wrapper  | JVM exited while loading the application.
wrapper  | Launching a JVM...
jvm 3    | Error occurred during initialization of VM
jvm 3    | java/lang/NoClassDefFoundError: java/lang/Object
wrapper  | JVM exited while loading the application.
wrapper  | Launching a JVM...
jvm 4    | Error occurred during initialization of VM
jvm 4    | java/lang/NoClassDefFoundError: java/lang/Object
wrapper  | JVM exited while loading the application.
wrapper  | Launching a JVM...
jvm 5    | Error occurred during initialization of VM
jvm 5    | java/lang/NoClassDefFoundError: java/lang/Object
wrapper  | JVM exited while loading the application.
wrapper  | There were 5 failed launches in a row, each lasting less than 300 seconds.    
Giving up.
wrapper  |   There may be a configuration problem: please check the logs.
wrapper  | <-- Wrapper Stopped
Press any key to continue . . .

使用Java 1.7.0._09。请帮我摆脱这个。 此外,我尝试在IntelliJ IDEA 11 Community Edition中配置Sonar。它在启动IDE时失败。是否有任何插件可供Community Edition运行Sonar。

3 个答案:

答案 0 :(得分:0)

你对wrapper.conf文件中的'wrapper.java.command'有什么价值?好像没有JVM可用

答案 1 :(得分:0)

您确定已安装JDK,而不仅仅是JRE吗?

同时检查JAVA_HOME配置是否正确。确保将JAVA_HOME环境变量设置为指向JDK根文件夹。

答案 2 :(得分:0)

做一件事,转到<sonarDirectory>\conf并编辑wrapper.conf文件并设置以下两行:

wrapper.java.command=C:\Program Files\Java\jdk1.8.0_20\bin\java
#wrapper.java.command=java