NYorke
NYorke

Reputation: 21

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

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?

Upvotes: 2

Views: 5898

Answers (3)

laughing_king
laughing_king

Reputation: 1

Let the wrapper command be: wrapper.java.command=java

Upvotes: 0

Josué Cano
Josué Cano

Reputation: 141

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

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

Upvotes: 6

Krunal Patel
Krunal Patel

Reputation: 51

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.

Upvotes: 4

Related Questions