2 min read

How to Install Sonarqube on Windows in 2025?

how to install sonarqube on windows in 2025?

How to Install SonarQube on Windows in 2025

SonarQube is an open-source platform widely used for continuous inspection of code quality.

It performs automatic reviews to identify bugs, vulnerabilities, and code smells. In this guide, we'll walk you through the steps on how to install SonarQube on a Windows system in 2025.

Prerequisites

Before you begin, ensure you have the following prerequisites installed:

  • Java JDK 17 or newer: SonarQube 2025 requires at least JDK 17. Download JDK.
  • Database System: SonarQube supports several database systems, including PostgreSQL, MySQL, or Oracle. For this guide, we recommend using PostgreSQL.
  • At least 4GB RAM: For optimal performance, ensure your system has sufficient memory.
  • Latest Version of SonarQube: Make sure to download the latest SonarQube version from the official SonarQube website.

Step-by-step Installation Guide

1. Install and Configure Java

  1. Download and install the latest JDK 17 from the Oracle JDK downloads page.
  2. Set the JAVA_HOME environment variable. Go to System Properties > Environment Variables and add JAVA_HOME pointing to your JDK installation directory.

2. Install PostgreSQL and Create Database

  1. Download and install PostgreSQL from the official website.
  2. During installation, set a password for the PostgreSQL user.
  3. Open pgAdmin, create a new database, and name it sonarqube.

3. Download and Configure SonarQube

  1. Download the latest SonarQube zip file from the SonarQube website.
  2. Extract the SonarQube package to your desired directory.
  3. Navigate to the conf folder within the SonarQube directory and open the sonar.properties file.
  4. Configure database settings by updating the following properties:
    sonar.jdbc.username=your_database_username
    sonar.jdbc.password=your_database_password
    sonar.jdbc.url=jdbc:postgresql://localhost:5432/sonarqube
    

4. Set Up SonarQube as a Windows Service

  1. Open Command Prompt as administrator.
  2. Navigate to the bin/windows-x86-64 directory in your SonarQube installation.
  3. Run the following command to install the SonarQube service:
    wrapper.exe install
    

5. Start the SonarQube Service

  1. In Command Prompt, navigate to the SonarQube bin/windows-x86-64 directory and execute:
    StartSonar.bat
    
  2. Open http://localhost:9000 in your web browser to access the SonarQube dashboard.

Additional Resources

Conclusion

By following these steps, you should have a running instance of SonarQube on your Windows system in 2025. SonarQube is a powerful tool for maintaining high code quality standards in your software projects. Make sure to explore the linked resources for further enhancements and integrations.

Remember to monitor the official SonarQube documentation for updates and best practices. Enjoy improving your code quality with SonarQube!


This article is structured to provide clear, step-by-step guidance for installing SonarQube on Windows in 2025 while remaining SEO-friendly with relevant keywords and useful internal and external links.