Sonar qube unable to run

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube version
  • what are you trying to achieve : Trying to start sonarQube service in windows server
  • what have you tried so far to achieve this

Sonarqube cannot start

From the sonar log:
→ Wrapper Started as Service

Launching a JVM…

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

Unrecognized option: --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED

JVM exited while loading the application.

JVM Restarts disabled. Shutting down.

← Wrapper Stopped


Welcome to the community!

Two questions:

  • What do your server logs say?
  • Did you edit $SONARQUBE-HOME/conf/ to add --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED to the Java options?


Hi Ann,

We installed sonarQube on windows server.

Are you referring to the server log file in “C:\SonarQube\logs”?

We did not edit the in “C:\SonarQube\conf”

I attached the sonar.20220913.log and the file

New folder (5).zip (7.49 KB)


You just published your DB credentials to the web. You’ve already changed them, right? Right?

Also, what version of Java are you using? If you’re not sure, you can find out by executing java -version from a command line.