Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'jmeter' is not recognized as an internal or external command, operable program or batch file

When i run my JMeter script on commandline mode, i am getting below error.

But the same script is running perfectly fine on GUI mode.

Need some help here to fix this.

Below is the error:

C:\Users\Sundarapandiyan>jmeter -n -t D:\JMETER\apache-jmeter-3.1\bin\My Projects MyFirstUIRecordBadBoy.jmx -l \JMETER\apache-jmeter-3.1\bin\My Projects CSVSample_user.csv 'jmeter' is not recognized as an internal or external command, operable program or batch file.

like image 886
Sundarapandiyan Avatar asked Mar 19 '17 18:03

Sundarapandiyan


1 Answers

As Dave L mentioned, add the Jmeter installation bin directory to the system path using My Computer > properties > Advanced System settings > Environment variables > Under system variables, select PATH > Add D:\JMETER\apache-jmeter-3.1\bin to your path at the end.

Please note, windows only considers the jmeter.bat file even when you run jmeter. It won't run the plain jmeter file available under the installation path.

like image 123
Selva Avatar answered Sep 20 '22 12:09

Selva