Created service for sonarqube on windows server 2019 gives error - Error 2: the system cannot find the file specified

SonarQube 9 9.2.4.50792
Java - JDK 17 (wrapper.conf is pointing directly at it)
I’ve added sonarqube and java into my PATH. If I try to launch the StartNTService.bat I get:

wrapper | Starting the SonarQube service…
wrapper | Unable to start the service - The system cannot find the file specified. (0x2)

Any help would be awesome!

Hi @dfish and welcome to the community :wave:

the creation of the service needs to be done manually and is documented here.

apart from that, please check the requirements as sonarqube can not run on java 17 as of now.

hope that helps :slight_smile:

Hmm that’s interesting it runs when I manually start it with Java 17 but just not as a service.

I changed the java version and it starts now but I can’t access the web interface now… sorry

I am very certain that SQ will not start with java 17 :sweat_smile:
Can you share the log files written by SQ to debug why you can not access the web interface?