Adding custom libraries to JMeter in NB

Guest Author

Lately, we had an issue filed about adding the mail.jar to the JMeter plugin distribution (see here to see the details).

This might seem as a valid request until you realize that the JAR in the question is an optional one and there might be many more optional JARs required for running particular JMeter tests there surely must be a better way to that than including ever more libraries in the distribution.

And there is - you just need to copy the library to ${jmetermodule}/lib directory. Depending on whether you choose to install the JMeter module in the shared directories or not the ${jmetermodule} resolves as one of the following

${nbuserdir}/modules/jmeter - for the standard installation

${nbinstall}/extra/modules/jmeter - for the installation into shared directories