Sonarqube community edition 8.9 failed in windows 2016 server edition

Hi Team
Sonar community edition 8.9 able to create service and start service
sc create SonarQube binPath= “"%SONAR_HOME%\bin\windows-x86–64\wrapper.exe" -s "%SONAR_HOME%\conf\wrapper.conf"”
Server details
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.18363

Failed in Microsoft Windows Server 2016 Standard
Sonar community edition 8.9 able to create service and service not starting
sc create SonarQube binPath= “"%SONAR_HOME%\bin\windows-x86–64\wrapper.exe" -s "%SONAR_HOME%\conf\wrapper.conf"”
Server details
OS Name: Microsoft Windows Server 2016 Standard
OS Version: 10.0.14393

The SonarQube service failed to start due to the following error:
The system cannot find the file specified.

Hey there.

Have you defined the SONAR_HOME environment variable pointing to you SonarQube installation directory?

Hi Colin,

Yes
echo %SONAR_HOME%
C:\Application\sonar_community_edition\sonarqube-8.9.10.61524

java -version
java version “11.0.9” 2020-10-20 LTS
Java™ SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
Java HotSpot™ 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)

Taking this a step further: can you confirm that C:\Application\sonar_community_edition\sonarqube-8.9.10.61524\bin\windows-x86–64\wrapper.exe actually exists?

Hi Colin,
Yes Wrapper.exe is present.

Hi Colin,

Please can you help on the service issue.

Hey there.

Please do not bump threads. :slight_smile:

The next place I would check is the wrapper.conf file – have you made any edits from the default configuration?

The file (by default) starts with:

# Path to JVM executable. By default it must be available in PATH.
# Can be an absolute path, for example:
#wrapper.java.command=/path/to/my/jdk/bin/java
wrapper.java.command=java

Hi Colin,

wrapper.conf java path
#wrapper.java.command=“C:\Program Files\Java\jdk-11.0.9\bin\java.exe”
wrapper.java.command=java

HI Colin,

I tried to install in 2019 server worked.
OS Name: Microsoft Windows Server 2019 Standard
OS Version: 10.0.17763

Please help me in the 2016 server edition installation issue.