I'm working on a web project and I want to integrate JMeter to run some load tests. I'm following this simple tutorial. I have installed JMeter using brew. When I try to run JMeter, I get the following error: Not able to find Java executable or version. Please check your Java installation.
Previously I have installed de last version of java (https://www.java.com/en/download/mac_download.jsp) and I have verified it on https://java.com/en/download/installed.jsp. I get this message "Congratulations! You have the recommended Java installed (Version 8 Update 91)." But I can't run JMeter. How should I configure my Java or JMeter installation for the run?
This error occurs due to the path has not been set properly. Either you can set it in environmental varialables or right click jmeter . bat file,choose edit set the path their,for reference see the jmeter.apache.org user manuals.
See the bin folder. Go inside it. Then type sh ./jmeter.sh . Basically the bin folder have jmeter.sh file which executes it.
The Java check in the jmeter
wrapper script incorrectly handles spaces in path names.
The path to the java binary on macOS is /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
, with a space in the path.
Edit /usr/local/brew/Cellar/jmeter/3.0/libexec/bin/jmeter
and comment out the version check block at the top as a workaround.
For having a working JMeter installation on MacOS, the latest compatible Java SDK needs to be installed from the Oracle Java SE page.
Once on that main page, you should go to the "Java Platform, Standard Edition" page and then download and install the Mac OS X .dmg file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With