Is there a way to start the SonarQube server (v. 3.7.4) with an specific jdk?
My case: My java-home is set to jdk 1.8, but SonarQube server has some known problems with 1.8. So I want to start the server with jdk 1.7 (without setting my java-home to 1.7). I couldn't find anything in the bat-files.
OS: Windows 7; SonarQube server version: 3.7.4
You have to edit the <install_directory>/conf/wrapper. conf file and update the wrapper. java. command property to point to the JDK you want.
The only prerequisite for running SonarQube is to have Java (Oracle JRE 8 or OpenJDK 8) installed on your machine. Note: On Mac OS X it is highly recommended to install Oracle JDK 8 instead of the corresponding Oracle JRE since the JRE installation does not fully set up your Java environment properly.
Unfortunately, and to answer explicitly your question: No, you won't be able to have the support of Java 16 and Java 17 with SQ 8.9 LTS. Since SQ 7.9 LTS, versions of languages analyzers are sticked to SQ versions, and can not be independently updated.
SonarQube requires Java 11+ to run The solution is to download and install Java 11+ from the official site (I installed Java JDK 12). Another things to make sure is that we register the path to this Java (e.g. “C:\Program Files\Java\jdk-12.0. 1\bin”) in our PATH of system environment variable.
You have to edit the <install_directory>/conf/wrapper.conf
file and update the wrapper.java.command
property to point to the JDK you want.
Everything is documented in this wrapper.conf
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With