JMeter unknown arg ?t

I just got the same error, and it turned out that instead of a regular hyphen (aka "minus sign"), the character was a en-dash, and they look similar enough for me not to notice.

Turns out that the Linux version of JMeter (or if it is Linux itself) is very picky, and only accepts the plain regular hyphen character. While the Windows version of JMeter handles both. I copy pasted from a command line example on a website, and I guess that person had run it on Windows and not tried it on Linux.

I think this was the same thing that happened to the original poster here. Posting this as an answer since it is still can happen, and no answer talked about the possibility that the wrong character was used.


Place your script file "TwoMinuteTest.jmx" into your JMeter bin directory and then try this command:

jmeter -n –t TwoMinuteTest.jmx -l testresults.jtl


So the issue was how I was getting the command into the command line.

When I copied and pasted my command, it was copied from a webpage, into notepad, and then into the command line. I wrongly assumed notepad would encode the correct character.

Just a bit confusing as the -n worked but not -t. Silly error!