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

SonarQube 9 9.2.4.50792
Java - JDK jdk-11.0.14 (wrapper.conf is pointing directly at it)
image

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)

please help me on this.

Hi,

Welcome to the community!

This sounds like a problem with the path to Java. If you open a command line and type java --version, what happens?

If you don’t get something like this:

openjdk 11.0.13 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

Then the $PATH value isn’t correct.

 
HTH,
Ann

hi,

issue is resolved now, while creating “services” path specified is not correct now it was corrected and now i was able to start the services.

Thank you…

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.