Change the location of the Temp folder under "Sonarqube" windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.