我得在我的机器上安装声纳。我跟踪了在Windows上安装Sonar作为Windows服务。
当我运行StartSonar.bat时,我看到了控制台的下一个输出:
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error occurred during initialization of VM
jvm 1 | Could not reserve enough space for object heap
jvm 1 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 2 | Error occurred during initialization of VM
jvm 2 | Could not reserve enough space for object heap
jvm 2 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 3 | Error occurred during initialization of VM
jvm 3 | Could not reserve enough space for object heap
jvm 3 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 4 | Error occurred during initialization of VM
jvm 4 | Could not reserve enough space for object heap
jvm 4 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 5 | Error occurred during initialization of VM
jvm 5 | Could not reserve enough space for object heap
jvm 5 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
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 . . .如何解决这个问题?
我知道重新安装JDK版本可能解决了这个问题。但我想保留现在的版本:
C:\Users\Nazar_Lelyak>java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)发布于 2014-07-09 07:34:17
请检查系统要求,对于SonarQube服务器运行时,还不支持JDK8。您将不得不使用JDK7代替。
更新看起来像支持JDK8版本的≥4.3
https://stackoverflow.com/questions/24633936
复制相似问题