Java.exe not found. Please make sure that the environmental variable SONAR_JAVA_PATH points to the

when I am trying to run Sonarstart.bat the Error I get is.

ERROR: java.exe not found. Please make sure that the environmental variable SONAR_JAVA_PATH points to the Java executable.

I have also setup path for JDK:-
User variable

image

for System variable
image

could anyone please help me out here.

I am using windows 11-64-bit
SonarQube V.9.9.0 and Java JDK 11.0.17.

Hi divyaraj:
I don’t actually know if the error you get is due to this, but the prerequisites page of 9.9 version says that SonarQube server requires Java 17.

Hope it helps.

Thank for reply Akabe and I have just updated my java 11 to 17 but get the same error.

I am also facing the same issue.

Just do what it said, set a SONAR_JAVA_PATH that leading to your java.exe in the system variable. Then reboot your pc.(Forgive my bad English, hope this works)

image
I had setup the JDK env in my center os,but it dosent work.My sonar version is 10.4.1.88267 and my JDK version is 17.

You forgot a / at the start of the path. It should be /usr/local...