0
votes

When I'm trying to run JMeter from command prompt like the following way:

C:\Jmeter\apache-jmeter-2.13\bin>jmeter -n -t C:\Jmeter\JmeterExamples\GmailThreadGroup.jmx -l log.jtl

I'm getting the following error

An error occurred : Unknown arg: and errorlevel=1 press any key to continue...

how do I resolve this error.

4

4 Answers

1
votes

Look into jmeter.log file

Run java -version and ensure it is a JAVA >= JAVA6

0
votes

Use this in your command line

C:\Jmeter\apache-jmeter-2.13\bin>jmeter -n -t GmailThreadGroup.jmx -l log.jtl

The reason it was causing error, because you have saved your jmx file in jmeter folder itself, so no need to specify the path for it.

0
votes

Just remove sh after jmeter in sh jmeter sh command in terminal. (so execute only sh jmeter)

0
votes

I too faced the same problem. I have browsed and tried most of things but no use. Finally tried,

jmeter -h

in command line (this got executed without any issues) and then I have tried NON-GUI command it ran. Please give a try...