[Java] Build JMeter environment on Mac

less than 1 minute read


I will prepare the environment of JMeter on Mac. You’ll also need to have Java installed, but Homebrew makes it easy. (Note: Homebrew is a prerequisite.)


  • macOS Catalina 10.15.5
  • Homebrew 2.4.1
  • Java openjdk 14.0.1 2020-04-14
  • JMeter 5.3


Java installation

Install using Homebrew.

# brew update
% brew update

# java install
% brew cask install java

Version confirmation

% /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    14.0.1, x86_64: "OpenJDK 14.0.1" /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home


pass through the path

# Only OK if .bash_profile does not exist
% touch ~/.bash_profile

% export PATH=$PATH:/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin
% export JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home

Reflect update of #bash_profile
% source ~/.bash_profile


% java --version
openjdk 14.0.1 2020-04-14
OpenJDK Runtime Environment (build 14.0.1+7)
OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)



Download from Apache JMeter. If mirrors remain as they are, there should be no problem. (Lol) This time I downloaded the source zip.

![Screenshot 2020-06-23 18.13.37.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/290840/59c2c538-e12e-a7d3-0609-(0a7ea0ab4010.png)


Unzip the download zip and run jmeter to start JMeter.  screenshot 2020-06-23 18.20.32.png

It is OK if the following screen opens. Screenshot 2020-06-23 18.23.19.png