title: SonarQube service was launched but failed to start?
body: <p>I am currently trying to install SonarQube. When following the instructions on their page, I came to the instruction to run the <strong>InstallNTService.bat</strong> and <strong>StartNTService.bat</strong>.</p>
  
  <p>Similar to <a href="https://stackoverflow.com/questions/25750108/sonar-qube-installation-on-windows-server-2012">this (stackoverflow)</a> post, it says </p>
  
  <pre><code>wrapper | Starting the SonarQube service...
  wrapper | The SonarQube service was launched, but failed to start.
  </code></pre>
  
  <p>The error log file says:</p>
  
  <pre><code>The SonarQube service was launched, but failed to start.
  Starting the SonarQube service...
  --&gt; Wrapper Started as Service
  Launching a JVM...
  Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
    Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
  
  
  WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
            The file is located on the path at the following location but
            could not be loaded:
              C:\tools\sonarqube-5.2\bin\windows-x86-64\.\lib\wrapper.dll
            Please verify that the file is readable by the current user
            and that the file has not been corrupted in any way.
            One common cause of this problem is running a 32-bit version
            of the Wrapper with a 64-bit version of Java, or vica versa.
            This is a 32-bit JVM.
            Reported cause:
              C:\tools\sonarqube-5.2\bin\windows-x86-64\lib\wrapper.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
            System signals will not be handled correctly.
  
  
  WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: Temp directory is not writable: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\
  java.lang.IllegalStateException: Temp directory is not writable: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\
      at org.sonar.process.MinimumViableSystem.checkWritableDir(MinimumViableSystem.java:60)
      at org.sonar.process.MinimumViableSystem.checkWritableTempDir(MinimumViableSystem.java:52)
      at org.sonar.process.MinimumViableSystem.check(MinimumViableSystem.java:45)
      at org.sonar.application.App.main(App.java:112)
      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)
  Caused by: java.io.IOException: Das System kann den angegebenen Pfad nicht finden
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      at java.io.File.createTempFile(Unknown Source)
      at org.sonar.process.MinimumViableSystem.checkWritableDir(MinimumViableSystem.java:57)
      ... 9 more
  &lt;-- Wrapper Stopped
  The SonarQube service was launched, but failed to start.
  </code></pre>
  
  <p>And I don't know why it fails. </p>
  
  <ul>
  <li>I ran the application as admin </li>
  <li>I have the 64 bit Windows and Java installed</li>
  <li>the wrapper.dll is right in its place</li>
  </ul>
  
  <p>Thank you in advance!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><a href="http://qualilogy.com/en/migrate-sonarqube-tomcat-to-windows-service/" rel="noreferrer">This</a> page descibes a solution to the problem that I can't use as the dropdown menu on right button click on the service is not available.</p>