SonarQube - Unable to execute Java command. Access is denied. (0x5)

Viewed 4533

When starting SonarQube (v8.3) it get this error:

Unable to execute Java command. Access is denied. (0x5) ... ... wrapper | wrapper | ------------------------------------------------------------------------ wrapper | Advice: wrapper | Access denied errors when attempting to launch the Java process are wrapper | usually caused by strict access permissions assigned to the directory wrapper | in which Java is installed. wrapper | ------------------------------------------------------------------------ wrapper | wrapper | Critical error: wait for JVM process failed

I have set all the permissions that are obvious on the java folder C:\Program Files\Java\jdk-11.0.4

This is running on a newly installed Windows 2016 Server.

Does anyone have a suggestion?

2 Answers

Make sure you added the jdk binaries to the system PATH, on enviroment variables.

C:\Program Files\Java\jdk-x.x.x\bin\java

Update Java path like below in your SonarQube/Conf/wrapper.conf file

wrapper.java.command=C:\Program Files\Java\jdk-11.0.4\bin\java

This solved my problem. Hope it work for you.

Thanks.

Related