2

我正在为我的项目使用 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 社区版中配置声纳。IDE启动失败。社区版是否有任何插件可用于运行 Sonar。

4

3 回答 3

0

做一件事,去<sonarDirectory>\conf编辑wrapper.conf文件并设置这两行:

wrapper.java.command=C:\Program Files\Java\jdk1.8.0_20\bin\java
#wrapper.java.command=java
于 2014-10-21T10:38:00.560 回答
0

what value do you have for the 'wrapper.java.command' in the wrapper.conf file? Seems like the is no JVM available

于 2012-12-13T10:07:47.980 回答
0

Are you sure you have installed a JDK, and not just the JRE?

Also Check JAVA_HOME is configured correctly. Make sure to set the JAVA_HOME environment variable to point to the JDK root folder.

于 2012-12-13T10:08:06.090 回答