I have a Java project that I need to run as a load test in JMeter. Found some examples that indicated you could make a jar file and put it in the Jmeter lib/ext folder and run it. Works for the simple example program I wrote.
Tried to scale up, made a jar of my larger project, placed it in the lib/ext folder, did the following in Beanshell sampler following the example program.
import package.JHelper;
JHelper x = new JHelper();
x.test();
I have also tried to import the class using the full path of
import cast.sa.vsp.package.JHelper;
import cast.sa.vsp.package.*;
Both return me the following response code
Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import cast.sa.vsp.package.JHelper; JHelper x = new JHelper(); . . . '' : Typed variable declaration : Class: JHelper not found in namespace
The only answer I have seen is that it would work if I moved it from /lib/ext to /lib. I have done this as well, with Jmeter being unable to run until I remove the jar from that directory.
Does anyone have any advice on how to get this working?