Unable to Install SonarQube Developer

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Version : sonarqube-developer-

  • what are you trying to achieve
    Trying to Install Trial Version

  • what have you tried so far to achieve this:
    Unable to install due to below error message:

WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11 to run
java.lang.IllegalStateException: SonarQube requires Java 11 to run
at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
at org.sonar.application.App.checkJavaVersion(App.java:94)
at org.sonar.application.App.start(App.java:57)
at org.sonar.application.App.main(App.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.lang.Thread.run(Unknown Source)
<-- Wrapper Stopped


Welcome to the community!

Here’s the issue:

It looks like you’ll need to upgrade Java.


I have already have Java 7 and 8 installed to support other applications.
Installed JDK 14 (Latest Version) and tried to install, got the same error.
Uninstalled JDK 14 and installed JDK 11 and tried to install Sonarqube still getting the same issue.

As of now, I have Java 7, 8, 11 installed in my machine. Still getting the same error


You need to make sure that SonarQube is using Java 11. The easiest way to do that is to make sure it’s the default install, and/or put it in your PATH.


I have already set default path to “C:\Program Files\Java\jdk-11.0.7\bin”. Still getting the same issue.

Hi @Mouli.Setti,

Could you check the value of your JAVA_HOME environment variable? It may still be pointing to one of the old JDKs. If that’s the case, you’ll need to point it to the directory above the binaries, i.e. C:\Program Files\Java\jdk-11.0.7 for the user who is running SonarQube.