title: SonarQube failed to start on Windows
body: <p>I am facing trouble to start the <code>SonarQube Server</code> as either a service or on its own.</p>
  
  <p>(All commands being run as Administrator on Windows 10, with 64-bit JDK and JRE installled)</p>
  
  <pre><code>C:\sonarqube\bin\windows-x86-64&gt;StartSonar.bat
  wrapper  | --&gt; Wrapper Started as Console
  wrapper  | Launching a JVM...
  jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
  jvm 1    |
  jvm 1    | 2018.01.09 10:05:37 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
  jvm 1    | 2018.01.09 10:05:37 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
  jvm 1    | 2018.01.09 10:05:37 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube\elasticsearch]: C:\Program Files\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube\elasticsearch -cp lib/* org.elasticsearch.bootstrap.Elasticsearch -Epath.conf=C:\sonarqube\temp\conf\es
  jvm 1    | 2018.01.09 10:05:37 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
  jvm 1    | 2018.01.09 10:05:38 INFO  app[][o.e.p.PluginsService] no modules loaded
  jvm 1    | 2018.01.09 10:05:38 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
  jvm 1    | 2018.01.09 10:05:39 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
  jvm 1    | 2018.01.09 10:05:39 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
  jvm 1    | 2018.01.09 10:05:39 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
  wrapper  | &lt;-- Wrapper Stopped
  </code></pre>
  
  <p>or </p>
  
  <pre><code>C:\sonarqube\bin\windows-x86-64&gt;InstallNTService.bat
  wrapper  | SonarQube installed.
  
  C:\sonarqube\bin\windows-x86-64&gt;StartNTService.bat
  wrapper  | Starting the SonarQube service...
  wrapper  | Waiting to start...
  wrapper  | The SonarQube service was launched, but failed to start.
  Press any key to continue . . .
  </code></pre>
  
  <p>I assume the error is the same for both of the cases.</p>