Unable to install Sonarqube 7.9.1 on Ubuntu 16.04( nstance on Google Cloud Platform )

Hi All,

I am trying to install Sonarqube 7.9.1 on an instance of Ubuntu 16.04 in GCP. After completing the required steps and trying to start Sonarqube, I get the error which I have attached here.
Command to install Java: sudo apt-get install unzip software-properties-common wget default-jdk

Can someone please guide me on how to proceed further.

Thank you.

Hey there.

The error seems pretty clear! SonarQube has tried to start with a version of Java that’s not compatible (Java 11 is required). Are you sure you have Java 11 installed? What version of java is shown if you execute java --version?)

Hi Colin,

Below message comes up when execute java -version:
openjdk version “1.8.0_252”
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~16.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Executed the below command to install java:
sudo apt-get install unzip software-properties-common wget default-jdk

How can I install Java 11 on a VM as it requires me to register on the Oracle website(which I have done)? Is there a wget for Java 11?

Thank you.

https://adoptopenjdk.net/installation.html :slight_smile: