JMeter can only currently be ran as a program. It would be great if you could create a distribution that was also only a library. This would help out, for instance, the JMeter Maven Plugin: https://github.com/Ronnie76er/jmeter-maven-plugin The jmeter maven plugin currently uses a jar compiled without the main to get access to the functionality of jmeter.
Appears to be the same request as Bug 50034 *** This bug has been marked as a duplicate of bug 50034 ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2447