Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarQube does not start

Tags:

java

sonarqube

I got a problem at SonarQube starting! In fact, it doesn't start and I don't get more informations only :

    --> 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?

like image 956
Simon LEDUNOIS Avatar asked Apr 24 '15 07:04

Simon LEDUNOIS


People also ask

Why is SonarQube not working?

it might be that the sonarqube installation got corrupt due to a sync issue with one drive. it is in general a bad idea to sync application data and even worse if this application data contains a database as it is in your case.

How do I restart SonarQube?

Restarting SonarQube can be done manually from the command line by running sonar.sh restart . In SonarQube Community Edition, you can also restart from the UI, in the Update Center. When you have Pending Changes, the restart button will be displayed in the yellow banner (see Pending Operations).


2 Answers

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

wrapper.java.command

to

wrapper.java.command=/mypath/jdk1.8.0_73/bin/java

For Windows may need to edit from

wrapper.java.command=java 

to

wrapper.java.command=mypath\Java\jdk1.8.0_92\bin\java 
like image 101
mmukhe Avatar answered Sep 22 '22 06:09

mmukhe


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;"

Sonar require JDK 7u75 or higher : View Sonar Requirements here

like image 28
Lotfiction Avatar answered Sep 22 '22 06:09

Lotfiction