SonarQube 8 cant be launched - Unable to execute Java command Windows 10

Downloaded SonarQube latest (8 releae 2019 october ) community version on a Windows 10 machine
unzipped it.
ran : “D:\SonarQube\sonarqube-8.0\bin\windows-x86-64\StartSonar.bat”

I get error:
–> Wrapper Started as Console
Launching a JVM…
Unable to execute Java command. Det går inte att hitta filen. (0x2)
“java” -Dsonar.wrapped=true -Djava.awt.headless=true -Xms8m -Xmx32m -Djava.library.path="./lib" -classpath “…/…/lib/jsw/wrapper-3.2.3.jar;…/…/lib/common/activation-1.1.jar;…/…/lib/common/commons-codec-1.12.jar;…/…/lib/common/commons-csv-1.4.jar;…/…/lib/common/commons-dbcp2-2.5.0.jar;…/…/lib/common/commons-dbutils-1.5.jar;…/…/lib/common/commons-email-1.5.jar;…/…/lib/common/commons-io-2.6.jar;…/…/lib/common/commons-lang-2.6.jar;…/…/lib/common/commons-lang3-3.4.jar;…/…/lib/common/commons-logging-1.2.jar;…/…/lib/common/commons-pool2-2.6.0.jar;…/…/lib/common/core-3.1.0.jar;…/…/lib/common/diffutils-1.2.jar;…/…/lib/common/elasticsearch-6.8.0.jar;…/…/lib/common/elasticsearch-cli-6.8.0.jar;…/…/lib/common/elasticsearch-core-6.8.0.jar;…/…/lib/common/elasticsearch-secure-sm-6.8.0.jar;…/…/lib/common/elasticsearch-x-content-6.8.0.jar;…/…/lib/common/gson-2.8.5.jar;…/…/lib/common/guava-18.0.jar;…/…/lib/common/hazelcast-3.12.1.jar;…/…/lib/common/HdrHistogram-2.1.9.jar;…/…/lib/common/hppc-0.7.1.jar;…/…/lib/common/httpclient-4.5.2.jar;…/…/lib/common/httpcore-4.4.4.jar;…/…/lib/common/jackson-annotations-2.9.9.jar;…/…/lib/common/jackson-core-2.9.9.jar;…/…/lib/common/jackson-databind-2.9.9.2.jar;…/…/lib/common/jackson-dataformat-cbor-2.8.11.jar;…/…/lib/common/jackson-dataformat-smile-2.8.11.jar;…/…/lib/common/jackson-dataformat-yaml-2.8.11.jar;…/…/lib/common/java-saml-2.5.0.jar;…/…/lib/common/java-saml-core-2.5.0.jar;…/…/lib/common/javax.mail-1.5.6.jar;…/…/lib/common/jbcrypt-0.4.jar;…/…/lib/common/jjwt-api-0.10.5.jar;…/…/lib/common/jjwt-impl-0.10.5.jar;…/…/lib/common/jjwt-jackson-0.10.5.jar;…/…/lib/common/jna-4.5.1.jar;…/…/lib/common/joda-time-2.10.3.jar;…/…/lib/common/jopt-simple-5.0.2.jar;…/…/lib/common/jsr305-3.0.2.jar;…/…/lib/common/jul-to-slf4j-1.7.25.jar;…/…/lib/common/log4j-api-2.8.2.jar;…/…/lib/common/log4j-to-slf4j-2.8.2.jar;…/…/lib/common/logback-access-1.2.3.jar;…/…/lib/common/logback-classic-1.2.3.jar;…/…/lib/common/logback-core-1.2.3.jar;…/…/lib/common/lucene-analyzers-common-7.7.0.jar;…/…/lib/common/lucene-backward-codecs-7.7.0.jar;…/…/lib/common/lucene-core-7.7.0.jar;…/…/lib/common/lucene-grouping-7.7.0.jar;…/…/lib/common/lucene-highlighter-7.7.0.jar;…/…/lib/common/lucene-join-7.7.0.jar;…/…/lib/common/lucene-memory-7.7.0.jar;…/…/lib/common/lucene-misc-7.7.0.jar;…/…/lib/common/lucene-queries-7.7.0.jar;…/…/lib/common/lucene-queryparser-7.7.0.jar;…/…/lib/common/lucene-sandbox-7.7.0.jar;…/…/lib/common/lucene-spatial-7.7.0.jar;…/…/lib/common/lucene-spatial-extras-7.7.0.jar;…/…/lib/common/lucene-spatial3d-7.7.0.jar;…/…/lib/common/lucene-suggest-7.7.0.jar;…/…/lib/common/lz4-1.3.0.jar;…/…/lib/common/mybatis-3.5.1.jar;…/…/lib/common/nanohttpd-2.3.0.jar;…/…/lib/common/netty-buffer-4.1.32.Final.jar;…/…/lib/common/netty-codec-4.1.32.Final.jar;…/…/lib/common/netty-codec-http-4.1.32.Final.jar;…/…/lib/common/netty-common-4.1.32.Final.jar;…/…/lib/common/netty-handler-4.1.32.Final.jar;…/…/lib/common/netty-resolver-4.1.32.Final.jar;…/…/lib/common/netty-transport-4.1.32.Final.jar;…/…/lib/common/okhttp-3.14.2.jar;…/…/lib/common/okio-1.17.2.jar;…/…/lib/common/parent-join-client-6.8.0.jar;…/…/lib/common/percolator-client-6.8.0.jar;…/…/lib/common/picocontainer-2.15.jar;…/…/lib/common/protobuf-java-3.7.0.jar;…/…/lib/common/scribejava-apis-6.8.1.jar;…/…/lib/common/scribejava-core-6.8.1.jar;…/…/lib/common/slf4j-api-1.7.25.jar;…/…/lib/common/snakeyaml-1.17.jar;…/…/lib/common/sonar-auth-common-8.0.jar;…/…/lib/common/sonar-auth-github-8.0.jar;…/…/lib/common/sonar-auth-gitlab-8.0.jar;…/…/lib/common/sonar-auth-ldap-8.0.jar;…/…/lib/common/sonar-auth-saml-8.0.jar;…/…/lib/common/sonar-ce-8.0.jar;…/…/lib/common/sonar-ce-common-8.0.jar;…/…/lib/common/sonar-ce-task-8.0.jar;…/…/lib/common/sonar-ce-task-projectanalysis-8.0.jar;…/…/lib/common/sonar-channel-4.1.jar;…/…/lib/common/sonar-classloader-1.0.jar;…/…/lib/common/sonar-core-8.0.jar;…/…/lib/common/sonar-db-core-8.0.jar;…/…/lib/common/sonar-db-dao-8.0.jar;…/…/lib/common/sonar-db-migration-8.0.jar;…/…/lib/common/sonar-duplications-8.0.jar;…/…/lib/common/sonar-main-8.0.jar;…/…/lib/common/sonar-markdown-8.0.jar;…/…/lib/common/sonar-plugin-api-8.0-all.jar;…/…/lib/common/sonar-plugin-api-impl-8.0.jar;…/…/lib/common/sonar-process-8.0.jar;…/…/lib/common/sonar-scanner-protocol-8.0.jar;…/…/lib/common/sonar-server-common-8.0.jar;…/…/lib/common/sonar-update-center-common-1.18.0.487.jar;…/…/lib/common/sonar-webserver-8.0.jar;…/…/lib/common/sonar-webserver-api-8.0.jar;…/…/lib/common/sonar-webserver-auth-8.0.jar;…/…/lib/common/sonar-webserver-core-8.0.jar;…/…/lib/common/sonar-webserver-es-8.0.jar;…/…/lib/common/sonar-webserver-webapi-8.0.jar;…/…/lib/common/sonar-webserver-ws-8.0.jar;…/…/lib/common/sonar-ws-8.0.jar;…/…/lib/common/stax2-api-3.1.4.jar;…/…/lib/common/staxmate-2.0.1.jar;…/…/lib/common/t-digest-3.2.jar;…/…/lib/common/tomcat-annotations-api-8.5.41.jar;…/…/lib/common/tomcat-embed-core-8.5.41.jar;…/…/lib/common/transport-6.8.0.jar;…/…/lib/common/transport-netty4-client-6.8.0.jar;…/…/lib/common/woodstox-core-5.0.3.jar;…/…/lib/common/woodstox-core-lgpl-4.4.0.jar;…/…/lib/common/xmlsec-2.1.4.jar;…/…/lib/sonar-application-8.0.jar;…/…/lib/sonar-shutdowner-8.0.jar” -Dwrapper.key=“U3hnOHTbWovutA72” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=12152 -Dwrapper.version=“3.2.3” -Dwrapper.native_library=“wrapper” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.sonar.application.App
Critical error: wait for JVM process failed
–> Wrapper Started as Console
Launching a JVM…
Unable to execute Java command. Det går inte att hitta filen. (0x2)
“java” -Dsonar.wrapped=true -Djava.awt.headless=true -Xms8m -Xmx32m -Djava.library.path="./lib" -classpath “…/…/lib/jsw/wrapper-3.2.3.jar;…/…/lib/common/activation-1.1.jar;…/…/lib/common/commons-codec-1.12.jar;…/…/lib/common/commons-csv-1.4.jar;…/…/lib/common/commons-dbcp2-2.5.0.jar;…/…/lib/common/commons-dbutils-1.5.jar;…/…/lib/common/commons-email-1.5.jar;…/…/lib/common/commons-io-2.6.jar;…/…/lib/common/commons-lang-2.6.jar;…/…/lib/common/commons-lang3-3.4.jar;…/…/lib/common/commons-logging-1.2.jar;…/…/lib/common/commons-pool2-2.6.0.jar;…/…/lib/common/core-3.1.0.jar;…/…/lib/common/diffutils-1.2.jar;…/…/lib/common/elasticsearch-6.8.0.jar;…/…/lib/common/elasticsearch-cli-6.8.0.jar;…/…/lib/common/elasticsearch-core-6.8.0.jar;…/…/lib/common/elasticsearch-secure-sm-6.8.0.jar;…/…/lib/common/elasticsearch-x-content-6.8.0.jar;…/…/lib/common/gson-2.8.5.jar;…/…/lib/common/guava-18.0.jar;…/…/lib/common/hazelcast-3.12.1.jar;…/…/lib/common/HdrHistogram-2.1.9.jar;…/…/lib/common/hppc-0.7.1.jar;…/…/lib/common/httpclient-4.5.2.jar;…/…/lib/common/httpcore-4.4.4.jar;…/…/lib/common/jackson-annotations-2.9.9.jar;…/…/lib/common/jackson-core-2.9.9.jar;…/…/lib/common/jackson-databind-2.9.9.2.jar;…/…/lib/common/jackson-dataformat-cbor-2.8.11.jar;…/…/lib/common/jackson-dataformat-smile-2.8.11.jar;…/…/lib/common/jackson-dataformat-yaml-2.8.11.jar;…/…/lib/common/java-saml-2.5.0.jar;…/…/lib/common/java-saml-core-2.5.0.jar;…/…/lib/common/javax.mail-1.5.6.jar;…/…/lib/common/jbcrypt-0.4.jar;…/…/lib/common/jjwt-api-0.10.5.jar;…/…/lib/common/jjwt-impl-0.10.5.jar;…/…/lib/common/jjwt-jackson-0.10.5.jar;…/…/lib/common/jna-4.5.1.jar;…/…/lib/common/joda-time-2.10.3.jar;…/…/lib/common/jopt-simple-5.0.2.jar;…/…/lib/common/jsr305-3.0.2.jar;…/…/lib/common/jul-to-slf4j-1.7.25.jar;…/…/lib/common/log4j-api-2.8.2.jar;…/…/lib/common/log4j-to-slf4j-2.8.2.jar;…/…/lib/common/logback-access-1.2.3.jar;…/…/lib/common/logback-classic-1.2.3.jar;…/…/lib/common/logback-core-1.2.3.jar;…/…/lib/common/lucene-analyzers-common-7.7.0.jar;…/…/lib/common/lucene-backward-codecs-7.7.0.jar;…/…/lib/common/lucene-core-7.7.0.jar;…/…/lib/common/lucene-grouping-7.7.0.jar;…/…/lib/common/lucene-highlighter-7.7.0.jar;…/…/lib/common/lucene-join-7.7.0.jar;…/…/lib/common/lucene-memory-7.7.0.jar;…/…/lib/common/lucene-misc-7.7.0.jar;…/…/lib/common/lucene-queries-7.7.0.jar;…/…/lib/common/lucene-queryparser-7.7.0.jar;…/…/lib/common/lucene-sandbox-7.7.0.jar;…/…/lib/common/lucene-spatial-7.7.0.jar;…/…/lib/common/lucene-spatial-extras-7.7.0.jar;…/…/lib/common/lucene-spatial3d-7.7.0.jar;…/…/lib/common/lucene-suggest-7.7.0.jar;…/…/lib/common/lz4-1.3.0.jar;…/…/lib/common/mybatis-3.5.1.jar;…/…/lib/common/nanohttpd-2.3.0.jar;…/…/lib/common/netty-buffer-4.1.32.Final.jar;…/…/lib/common/netty-codec-4.1.32.Final.jar;…/…/lib/common/netty-codec-http-4.1.32.Final.jar;…/…/lib/common/netty-common-4.1.32.Final.jar;…/…/lib/common/netty-handler-4.1.32.Final.jar;…/…/lib/common/netty-resolver-4.1.32.Final.jar;…/…/lib/common/netty-transport-4.1.32.Final.jar;…/…/lib/common/okhttp-3.14.2.jar;…/…/lib/common/okio-1.17.2.jar;…/…/lib/common/parent-join-client-6.8.0.jar;…/…/lib/common/percolator-client-6.8.0.jar;…/…/lib/common/picocontainer-2.15.jar;…/…/lib/common/protobuf-java-3.7.0.jar;…/…/lib/common/scribejava-apis-6.8.1.jar;…/…/lib/common/scribejava-core-6.8.1.jar;…/…/lib/common/slf4j-api-1.7.25.jar;…/…/lib/common/snakeyaml-1.17.jar;…/…/lib/common/sonar-auth-common-8.0.jar;…/…/lib/common/sonar-auth-github-8.0.jar;…/…/lib/common/sonar-auth-gitlab-8.0.jar;…/…/lib/common/sonar-auth-ldap-8.0.jar;…/…/lib/common/sonar-auth-saml-8.0.jar;…/…/lib/common/sonar-ce-8.0.jar;…/…/lib/common/sonar-ce-common-8.0.jar;…/…/lib/common/sonar-ce-task-8.0.jar;…/…/lib/common/sonar-ce-task-projectanalysis-8.0.jar;…/…/lib/common/sonar-channel-4.1.jar;…/…/lib/common/sonar-classloader-1.0.jar;…/…/lib/common/sonar-core-8.0.jar;…/…/lib/common/sonar-db-core-8.0.jar;…/…/lib/common/sonar-db-dao-8.0.jar;…/…/lib/common/sonar-db-migration-8.0.jar;…/…/lib/common/sonar-duplications-8.0.jar;…/…/lib/common/sonar-main-8.0.jar;…/…/lib/common/sonar-markdown-8.0.jar;…/…/lib/common/sonar-plugin-api-8.0-all.jar;…/…/lib/common/sonar-plugin-api-impl-8.0.jar;…/…/lib/common/sonar-process-8.0.jar;…/…/lib/common/sonar-scanner-protocol-8.0.jar;…/…/lib/common/sonar-server-common-8.0.jar;…/…/lib/common/sonar-update-center-common-1.18.0.487.jar;…/…/lib/common/sonar-webserver-8.0.jar;…/…/lib/common/sonar-webserver-api-8.0.jar;…/…/lib/common/sonar-webserver-auth-8.0.jar;…/…/lib/common/sonar-webserver-core-8.0.jar;…/…/lib/common/sonar-webserver-es-8.0.jar;…/…/lib/common/sonar-webserver-webapi-8.0.jar;…/…/lib/common/sonar-webserver-ws-8.0.jar;…/…/lib/common/sonar-ws-8.0.jar;…/…/lib/common/stax2-api-3.1.4.jar;…/…/lib/common/staxmate-2.0.1.jar;…/…/lib/common/t-digest-3.2.jar;…/…/lib/common/tomcat-annotations-api-8.5.41.jar;…/…/lib/common/tomcat-embed-core-8.5.41.jar;…/…/lib/common/transport-6.8.0.jar;…/…/lib/common/transport-netty4-client-6.8.0.jar;…/…/lib/common/woodstox-core-5.0.3.jar;…/…/lib/common/woodstox-core-lgpl-4.4.0.jar;…/…/lib/common/xmlsec-2.1.4.jar;…/…/lib/sonar-application-8.0.jar;…/…/lib/sonar-shutdowner-8.0.jar” -Dwrapper.key=“XokwNeCzadg2RLgL” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=1992 -Dwrapper.version=“3.2.3” -Dwrapper.native_library=“wrapper” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.sonar.application.App
Critical error: wait for JVM process failed

Ok I downloaded from java.com the latest:
Now I get error :
–> Wrapper Started as Console
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11+ to run
java.lang.IllegalStateException: SonarQube requires Java 11+ to run
at org.sonar.application.App.checkJavaVersion(App.java:93)
at org.sonar.application.App.start(App.java:56)
at org.sonar.application.App.main(App.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.lang.Thread.run(Unknown Source)
<-- Wrapper Stopped
Should there be an installation program instead of a zip file ?
Where you have to guess what prerequisite there are ?

Ok I downloaded latest version of java from

I do not get any error messag now afaik. It just stops.

–> Wrapper Started as Console
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2019.10.20 15:18:42 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory D:\SonarQube\sonarqube-8.0\temp
2019.10.20 15:18:42 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2019.10.20 15:18:42 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [D:\SonarQube\sonarqube-8.0\elasticsearch]: C:\Program Files\AdoptOpenJDK\jdk-13.0.0.33-hotspot\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=D:\SonarQube\sonarqube-8.0\temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=D:\SonarQube\sonarqube-8.0\elasticsearch -Des.path.conf=D:\SonarQube\sonarqube-8.0\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2019.10.20 15:18:42 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2019.10.20 15:18:42 INFO app[o.e.p.PluginsService] no modules loaded
2019.10.20 15:18:42 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2019.10.20 15:18:47 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2019.10.20 15:18:47 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2019.10.20 15:18:47 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

I got it working after installing verison 11 of Java from https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=hotspot#x64_win not the latest 13.

1 Like