Search code examples
sonarqube

StartSonar.bat does not start


I am trying to run sonarqube but the console is emptyenter image description here

I tried debugging the script and the function check_if_sonar_is_running runs without errors . However, the rest of the script does not execute. The interesting thing is that this script works on my other computer. I have installed java 11.

StartSonar script below

enter image description here

Does anyone have any idea what could have gone wrong?


Solution

  • Solution is add environment variables. In system variables: I added path to java bin. In user variables I added variable "JAVA_HOME" to main catalog of java. Restart PC and sonarqube started.