Java SonarQube 无法启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29841138/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SonarQube does not start
提问by Simon LEDUNOIS
I got a problem at SonarQube starting! In fact, it doesn't start and I don't get more informations only :
我在 SonarQube 启动时遇到了问题!事实上,它并没有开始,我也没有得到更多的信息:
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 51.0
WrapperSimpleApp Usage:
java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
Where:
app_class: The fully qualified class name of the application to run.
app_arguments: The arguments that would normally be passed to the
application.
<-- Wrapper Stopped
Can someone help me?
有人能帮我吗?
回答by Lotfiction
Install java JDK version 7u75 or higher,
Update your JAVA_HOME to point on the installed JDK directory.
Update your path to start with "%JAVA_HOME%/bin;"
安装 java JDK 7u75 或更高版本,
更新您的 JAVA_HOME 以指向已安装的 JDK 目录。
更新您的路径,以“%JAVA_HOME%/bin;”开头
Sonar require JDK 7u75 or higher : View Sonar Requirements here
声纳需要 JDK 7u75 或更高版本:在此处查看声纳要求
回答by mmukhe
We would need to set the right version of Java. In sonarqube-5.6, change the property in the file sonarqube-5.6/conf/wrapper.conf
我们需要设置正确的 Java 版本。在 sonarqube-5.6 中,更改文件中的属性sonarqube-5.6/conf/wrapper.conf
wrapper.java.command
包装器.java.command
to
到
wrapper.java.command=/mypath/jdk1.8.0_73/bin/java
wrapper.java.command=/mypath/jdk1.8.0_73/bin/java
For Windows may need to edit from
对于 Windows 可能需要从编辑
wrapper.java.command=java
to
到
wrapper.java.command=mypath\Java\jdk1.8.0_92\bin\java