WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11+ to run

When trying to start community version 7.9.1 sonarqube ./sonar.sh start fails.
So, tried using ./sonar.sh console then it’s complaining about JAVA 11+ to run.
I already have JAVA 8 installed.
So, I edited wrapper.conf and set path to pick Java 8. As given below -

wrapper.java.command=/Library/java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin
wrapper.java.command=java

Error logs -

Running SonarQube…
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 |
jvm 1 | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11+ to run
jvm 1 | java.lang.IllegalStateException: SonarQube requires Java 11+ to run
jvm 1 | at org.sonar.application.App.checkJavaVersion(App.java:93)
jvm 1 | at org.sonar.application.App.start(App.java:56)
jvm 1 | at org.sonar.application.App.main(App.java:98)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1 | at java.lang.reflect.Method.invoke(Method.java:498)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1 | at java.lang.Thread.run(Thread.java:748)
wrapper | ← Wrapper Stopped

Do you realize that 8 is less than 11 ?

Yes, I do. An I cannot upgrade to higher version of Java as we have our BE code dependent on Java8.

As written in documentation at https://docs.sonarqube.org/7.9/requirements/requirements/#header-3

SonarQube server starting from version 7.9 absolutely mandatory requires Java 11.

And this has nothing to do with your code - your code can still require Java 8 and you can still use Java 8 to analyse it.

3 posts were split to a new topic: Timeout during analysis