I installed sonarqube-10.4.0.87286 and sonar-scanner-6.1.0.83647-net-framework via zip files.
I’ve verified echo %JAVA_HOME%
C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot\bin
Please help me to get SonarQube working.
When I try to run the StartSonar.bat I get the following error:
2024.09.09 08:59:21 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
ERROR: Elasticsearch did not exit normally - check the logs at C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\logs\sonarqube.log
ERROR: Elasticsearch exited unexpectedly, with exit code 1
2024.09.09 08:59:24 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2024.09.09 08:59:24 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.09.09 08:59:24 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
sonar.log:
2024.09.09 08:59:21 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\temp
2024.09.09 08:59:21 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:62364]
2024.09.09 08:59:21 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\elasticsearch]: C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\elasticsearch -Des.path.conf=C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\temp\conf\es -Des.distribution.type=tar -cp C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\elasticsearch\lib\*;C:\SonarQube\sonarqube-10.4.0.87286\sonarqube-10.4.0.87286\elasticsearch\lib\cli-launcher\* org.elasticsearch.launcher.CliToolLauncher
2024.09.09 08:59:21 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.09.09 08:59:24 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2024.09.09 08:59:24 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.09.09 08:59:24 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
es.log:
2024.09.09 08:59:24 ERROR es[][o.e.b.Elasticsearch] fatal exception while booting Elasticsearch
java.lang.IllegalStateException: jar hell!
class: com.ibm.db2.jcc.licenses.DB2J
jar1: C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cisuz.jar
jar2: C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar
at org.elasticsearch.jdk.JarHell.checkClass(JarHell.java:315) ~[elasticsearch-core-8.11.0.jar:?]
at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:233) ~[elasticsearch-core-8.11.0.jar:?]
at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:84) ~[elasticsearch-core-8.11.0.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:181) ~[elasticsearch-8.11.0.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:72) ~[elasticsearch-8.11.0.jar:?]