I am trying to execute a java jar from my jmeter tests via beanshell.
The approach I followed is to create a shell script, execute it through beanshell using Runtime.exec() function.
The question I have is whether execution of this shell script will take java from instance/host/OS level or it will be executed as part of current java that the application is using.
There could be open questions for which I want to provide an answer to before time:
Any help is appreciated.
In a way, both.
The shell script will be executed as part of your Java program, but it will be executed using the system's default Java executable unless you've specified a Java executable in the exec()
method call.