Search code examples
javasonarqube

start SonarQube server with specific jdk


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


Solution

  • 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.