【问题标题】:SonarQube does not start on windows even though path variables were set即使设置了路径变量,SonarQube 也不会在 Windows 上启动
【发布时间】:2016-10-23 19:31:30
【问题描述】:

我的 jdk 版本是 1.7.0。我搜索了答案,但我还没有找到正确的答案。这是我遇到的错误。请帮我解决问题。

C:\sonarqube-5.6\bin\windows-x86-64>StartSonar.bat
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | WrapperSimpleApp: Unable to locate the class  org.sonar.application.App: java.lang.UnsupportedClassVersionError:  org/sonar/application/App : Unsupport
ed major.minor version 52.0
jvm 1    |
jvm 1    | WrapperSimpleApp Usage:
jvm 1    |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_a
 rguments]
 jvm 1    |
 jvm 1    | Where:
 jvm 1    |   app_class:      The fully qualified class name of the application t
 o run.
 jvm 1    |   app_arguments:  The arguments that would normally be passed to      the
jvm 1    |                   application. 
wrapper  | <-- Wrapper Stopped
Press any key to continue . . .

【问题讨论】:

  • 您的 sonarqube 版本需要 Java 8 (UnsupportedClassVersionError ... Unsupported major.minor version 52.0)
  • 谢谢。这意味着我获得了 SonarQube 的次要版本。
  • 您使用哪个版本的 sonarQube?
  • @WiranjiDinelka 请记住,Java 7 将在 2015 年 4 月结束生命周期,因此强烈建议更新到 Java 8。

标签: java sonarqube sonarqube-ops


【解决方案1】:

SonarQube 5.6 (LTS *) – 2016 年 6 月 3 日 长期支持版本,需要 Java 8 才能运行

SonarQube 5.1.2SonarQube 5.5 的版本 应该可以在 Java 7 上正常工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-02
    • 2018-08-17
    • 2018-06-07
    • 1970-01-01
    • 2012-07-04
    • 2018-12-09
    相关资源
    最近更新 更多