title: How to execute java class from Jmeter
body: <p>Is there a way to execute java class from jmeter? I've packaged my class with maven assembly and put it in the lib folder of JMETER_HOME. Then I created BSF Listener inside my test case and wrote :</p>
  
  <pre><code>import my.package.name.App;
  
  my.package.name.App app = new my.package.name.App("argument1", "argument2");
  </code></pre>
  
  <p>Is there another way to execute java class or whatever maybe with java -jar call the jar directly , this class basically creates one big file from the smaller files, which locations are provided by jmeter so it needs to be included in the test because its the part of the flow.</p>