baijiahao
(bai jiahao)
1
Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube version 9.2.1.49989
- 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:
C:\SonarQube\logs\sonar.20220907.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
ganncamp
(G Ann Campbell)
3
Hi,
Welcome to the community!
Two questions:
- What do your server logs say?
- Did you edit
$SONARQUBE-HOME/conf/sonar.properties
to add --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
to the Java options?
Ann
baijiahao
(bai jiahao)
4
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 sonar.properties in “C:\SonarQube\conf”
I attached the sonar.20220913.log and the sonar.properties file
New folder (5).zip (7.49 KB)
ganncamp
(G Ann Campbell)
6
Hello,
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.
Ann