Installation ยท Performance Testing 101

How to Install Apache JMeter

A step-by-step guide to installing JMeter on macOS and Windows โ€” covering prerequisites, Homebrew, manual installation, and environment setup.

๐ŸŽ macOS ๐ŸชŸ Windows
๐ŸŽ

macOS Installation

2 Methods
โ˜• Pre-Requisite: Java (JDK 8+)
Before installing JMeter, ensure Java (JDK 8 or higher) is installed. Check your version:
java -version
If Java is not installed, use Homebrew:
brew install openjdk
Then add it to your PATH:
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zprofile
source ~/.zprofile
Recommended

Method 1: Using Homebrew

๐Ÿบ
1
Install JMeter
brew install jmeter
2
Verify Installation
jmeter --version
3
Set JMETER_HOME (Optional)
Find the install path, then add to your shell profile:
brew --prefix jmeter
# โ†’ /opt/homebrew/Cellar/jmeter/5.6.3
# Add to ~/.zprofile or ~/.zshrc:
export JMETER_HOME="/opt/homebrew/Cellar/jmeter/5.6.3/libexec"
export PATH="$JMETER_HOME/bin:$PATH"
4
Apply Changes
source ~/.zprofile
๐Ÿ’ก
Homebrew handles PATH automatically โ€” JMETER_HOME is only needed if other tools or scripts depend on it.
Alternative

Method 2: Manual Installation

๐Ÿ“ฆ
1
Download JMeter
Go to jmeter.apache.org/download_jmeter.cgi โ†’ download apache-jmeter-5.6.3.zip from Binaries section.
2
Extract & Move
Double-click the .zip to extract, then move to Applications:
sudo mv ~/Downloads/apache-jmeter-5.6.3 /Applications/
3
Set JMETER_HOME & PATH
Add to ~/.zprofile or ~/.zshrc:
export JMETER_HOME="/Applications/apache-jmeter-5.6.3"
export PATH="$JMETER_HOME/bin:$PATH"
4
Apply Changes
source ~/.zprofile
5
Launch
apache-jmeter-5.6.3/bin
jmeter
๐ŸชŸ

Windows Installation

4 Steps
Step 1

Install Java (JDK 11+)

โ˜•
1
Download JDK
Get JDK from Oracle, Adoptium, or Amazon Corretto. Recommended: JDK 17 (LTS) or JDK 21.
2
Run Installer & Verify
Execute the .exe installer, accept defaults, then verify in Command Prompt:
java -version
# โ†’ openjdk version "21.0.1"
Step 2

Set JAVA_HOME Environment Variable

โš™๏ธ
1
Find Java Path
Navigate to where Java was installed, e.g.:
C:\Program Files\Java\jdk-21.0.1
2
Open Environment Variables
Search "Edit the system environment variables" โ†’ click "Environment Variables..."
3
Create JAVA_HOME
Variable nameJAVA_HOME
Variable valueC:\Program Files\Java\jdk-21.0.1
4
Update Path
Edit system Path variable โ†’ add new entry:
%JAVA_HOME%\bin
Step 3

Download JMeter & Set JMETER_HOME

๐Ÿ“ฆ
1
Download & Extract
Download apache-jmeter-5.6.3.zip from the official site โ†’ extract โ†’ move to a convenient location:
C:\Apache\apache-jmeter-5.6.3
2
Set JMETER_HOME
Variable nameJMETER_HOME
Variable valueC:\Apache\apache-jmeter-5.6.3
3
Update Path
Edit system Path โ†’ add new entry:
%JMETER_HOME%\bin
Step 4

Launch JMeter

๐Ÿš€
โœ“
Open a New Command Prompt
Type the command and press Enter:
jmeter
๐ŸŽ‰
JMeter GUI will launch โ€” you're ready to start building test plans!

You're All Set!

$ jmeter
Works on both macOS and Windows after setup โ€” launches the JMeter GUI from any terminal.