Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run jmeter on OS x (El Capitan)

Tags:

java

macos

jmeter

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?

like image 900
Danna Castro Avatar asked Jun 30 '16 15:06

Danna Castro


People also ask

Why Apache Jmeter is not opening?

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.

How do I know if JMeter is installed on my Mac?

See the bin folder. Go inside it. Then type sh ./jmeter.sh . Basically the bin folder have jmeter.sh file which executes it.


2 Answers

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.

like image 117
konrad Avatar answered Oct 18 '22 05:10

konrad


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.

like image 34
Cristi Dascalu Avatar answered Oct 18 '22 03:10

Cristi Dascalu