The latest version of Sonarqube (4.5.1) downloaded by Startsonar.bat file can be started, but cannot be started by Startntservice.bat file because the default temp file is not writable,
Java.lang.IllegalStateException:Temp Directory is not writable:c:\windows\system32\config\systemprofile\appdata\ Local\temp\
Initially wanted to modify the Temp folder's properties so that it could be written, but did not succeed, and had to change the location of the Sonarqube default Temp folder by modifying the following method:
Found conf/ wrapper.conf file, locate
#*********************************************** # Wrapper java#********************************************************************
Wrapper.java.additional.1=-djava.awt.headless=true
And then add the
Wrapper.java.additional.2=-djava.io.tmpdir=c:\temp
Then create a temp folder in drive C and run Startntservice.bat again to start up.
"Sonarqube" Changes the location of the Temp folder under Windows