Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecat

Starting SonarQube…
2022.11.30 19:21:10 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Sonarqube\sonarqube-9.7.1.62043\temp
2022.11.30 19:21:10 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:53330]
2022.11.30 19:21:10 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\Sonarqube\sonarqube-9.7.1.62043\elasticsearch]: C:\Program Files\Java\jdk-19\bin\java -XX:+UseG1GC -Djava.io.tmpdir=C:\Sonarqube\sonarqube-9.7.1.62043\temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djna.tmpdir=C:\Sonarqube\sonarqube-9.7.1.62043\temp -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.locale.providers=COMPAT -Dcom.redhat.fips=false -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\Sonarqube\sonarqube-9.7.1.62043\elasticsearch -Des.path.conf=C:\Sonarqube\sonarqube-9.7.1.62043\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2022.11.30 19:21:10 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Exception in thread “main” java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:423)
at org.elasticsearch.bootstrap.Security.setSecurityManager(Security.java:99)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)
2022.11.30 19:21:11 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2022.11.30 19:21:11 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2022.11.30 19:21:11 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

My jdk version is 19 and the sonaqube version is 9.7
For my friend its working fine I tried but its getting same

Hey there.

As noted in the requirements documentation, you should use Java 11 to start the server.