Tried to start the sonar with startSonar.bat file but ended up with error(setSecurityManager)

OS:Windows 10
Java version:17
installed from ZIP

Starting SonarQube...
> 2024.02.21 00:27:29 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-\temp
> 2024.02.21 00:27:29 INFO  app[][] Elasticsearch listening on [HTTP:, TCP:]
> 2024.02.21 00:27:29 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\sonarqube-\elasticsearch]: C:\Program Files\Java\jdk-17\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\sonarqube-\elasticsearch -Des.path.conf=C:\sonarqube-\temp\conf\es -Des.distribution.type=tar -cp C:\sonarqube-\elasticsearch\lib\*;C:\sonarqube-\elasticsearch\lib\cli-launcher\* org.elasticsearch.launcher.CliToolLauncher
> 2024.02.21 00:27:29 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
> 2024.02.21 00:28:00 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
> 2024.02.21 00:44:30 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [C:\sonarqube-]: C:\Program Files\Java\jdk-17\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8\sonarqube-\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/ --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/ -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-;C:\sonarqube-\lib\jdbc\mssql\mssql-jdbc-12.4.2.jre11.jar C:\sonarqube-\temp\sq-process7712124923300585695properties
> WARNING: A terminally deprecated method in java.lang.System has been called
> WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/C:/sonarqube-
> WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
> WARNING: System::setSecurityManager will be removed in a future release

And also there are other errors while trying to change some configurations in properties file.

can someone help me get this up and running ?

1 Like

Same problem here!. Pre-requisites installed but getting those warning messages and then stop server…

Hi all,

Welcome to the community!

Those WARNING lines are just that - warnings. They’re not errors.

Please check your server logs to find the actual errors.

@Aurelio_Benedi_Matas it’s quite likely that whatever error you find in your logs will be different from what the original poster finds in his, so please create a new thread if you still need help once you’ve identified the problem.


1 Like