7

I'm trying to make my windows 10 to open .jmx file with jmeter GUI when I double click on it.

I' using "apache-jmeter-3.2" and currently, in order to open a jmx file I am opening the jmeter jar "\apache-jmeter-3.2\bin\ApacheJMeter.jar" and then dragging the jmx file into it.

I have tried to use the "open with" windows feature, but if i navigate to the jar location and mark "show all files" in order to see .jar extenstions and select it, it show me a windows message says "this app cannot run on your PC".

Amitk
  • 153
  • 2
  • 10

2 Answers2

5

You should use jmeter-t.cmd (found in JMeter's bin folder)

drop a JMX file on this to load it in GUI mode

Associate file extension .jmx to this command to open JMeter GUI on double click JMeter file.

Community
  • 1
  • 1
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
4
  1. Use Assoc command to set file type association for JMeter .jmx scripts

    Assoc .jmx=jmeter
    
  2. Use FType command to define JMeter executable for the .jmx scripts

    FType jmeter="c:\apps\jmeter\bin\jmeter-t.cmd" %1
    

    enter image description here

  3. That's it, you should be now able to open .jmx scripts by double clicking them on Windows. Just in case here is how to configure MacOS for automatically opening JMeter scripts
  4. According to JMeter Best Practices you should always be using the latest version of JMeter so consider migrating to JMeter 5.0 (or whatever is the current version available at JMeter Downloads page)
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • 1
    Worth noting that you should put quotes around %1 in the FType command if you want to double-click a jmx file from a directory with spaces in the path, otherwise you will get the slightly cryptic error message: "Please supply a script name with the extension .jmx" – Jonathan Jul 16 '20 at 10:45