Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

start SonarQube server with specific jdk

Tags:

java

sonarqube

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

like image 519
user871611 Avatar asked Dec 19 '14 09:12

user871611


People also ask

How can I change Java path in SonarQube?

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.

Does SonarQube work with OpenJDK?

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.

Does SonarQube support JDK 17?

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.

How do I run SonarQube with Java 11?

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.


1 Answers

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.

like image 74
Fabrice - SonarSource Team Avatar answered Oct 06 '22 14:10

Fabrice - SonarSource Team