简体   繁体   English

无法使用JDK 8安装声纳

[英]can't install sonar with JDK 8

I have to install sonar on my machine. 我必须在机器上安装声纳。 I followed Install Sonar on Windows as a Windows Service . 我按照Windows服务将Sonar安装在Windows上

When I runned StartSonar.bat , I saw next output to console: 运行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 . . .

How to solve this issue? 如何解决这个问题?

I understand that reinstall JDK version probably solves this trouble. 我知道重新安装JDK版本可能可以解决此问题。 But I want to keep current version: 但我想保留当前版本:

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)

Please check the system requirements , JDK8 is not supported (yet) for the SonarQube server runtime. 请检查系统要求 ,SonarQube服务器运行时尚不支持JDK8。 You will have to use JDK7 instead. 您将不得不使用JDK7。

Update Looks like JDK8 is supported for versions ≥ 4.3 ≥4.3的版本似乎支持JDK8 更新

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM