This guide provides step-by-step instructions to install SonarQube on Mac, Windows, and Linux for Java static analysis in 2025. SonarQube is a leading tool for code quality and security analysis.
brew install openjdk@17
tar -xzf sonarqube-*.zip
cd sonarqube-*
./bin/macosx-universal-64/sonar.sh start
tar -xf sonarqube-*.zip
cd sonarqube-*
bin\windows-x86-64\StartSonar.bat
sudo apt-get install openjdk-17-jdk
(Debian/Ubuntu) or sudo yum install java-17-openjdk
(RHEL/CentOS)unzip sonarqube-*.zip
cd sonarqube-*
./bin/linux-x86-64/sonar.sh start
admin/admin
SonarQube is easy to install on all major platforms. Follow the steps above to get started with static analysis for your Java projects in 2025!