A note on setting up JMeter on a Mac. Also jEnv that manages Java version.
First, check the version of Java installed by Homebrew
When I looked it up, the latest JMeter required 8 or 9, and 11 was already installed locally due to the previous installation of Eclipse. I wanted to switch the version for each project, so I installed jEnv. I also put Jmeter in Homebrew.
brew install jenv
brew install jmeter
brew info jmeter
After all, even if you look at the version of Jmeter installed by Homebrew, 8 or 9 seems to be necessary!
Download the 8 installer from Oracle. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Add environment variables and Japaneseize JMeter.
echo 'export PATH="$HONE/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc
#Japanese localization of JMeter. By leaving it blank, it matches the locale of the OS.
echo 'export JMETER_LANGUAGE=" "' >> ~/.zshrc
#Reflect
source ~/.zshrc
Add jdk to jEnv
jenv add /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home
Since I was able to register, I will switch the version.
jenv global 1.8
jenv rehash
Try starting JMeter
jmeter
That's it.
reference jEnv official http://www.jenv.be/ Jmeter official https://jmeter.apache.org/download_jmeter.cgi
Recommended Posts