title: How to resolve javax.naming.NameNotFoundException: com.ibm.mq.jms.MQQueueConnectionFactory error in JMeter
body: <p>I am using JMeter to connect to Websphere MQ for placing multiple messages to the Queue. I have tried the below</p>
  
  <ol>
  <li><p>Downloaded the below jars into a separate path and enabled the user.classpath variable in <code>jmeter.properties</code> and appended the jars path to it</p>
  
  <p>a) com.ibm.mq.jar</p>
  
  <p>b) com.ibm.mqjms.jar</p>
  
  <p>c) dhbcore.jar</p>
  
  <p>d) fscontext.jar</p>
  
  <p>e) javax.jms.jar</p>
  
  <p>f) jms.jar</p>
  
  <p>g) providerutil.jar</p>
  
  <ol start="2">
  <li><p>Used JMS Publisher Sampler and have set the required details<a href="https://i.stack.imgur.com/XReMh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XReMh.png" alt="enter image description here"></a></p></li>
  <li><p>Ran the Sampler and I am getting error as <code>javax.naming.NameNotFoundException: com.ibm.mq.jms.MQQueueConnectionFactory</code> <a href="https://i.stack.imgur.com/kBhTk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kBhTk.png" alt="enter image description here"></a></p></li>
  </ol></li>
  </ol>
  
  <p>I have tried downloading multiple other jars as specified in different forums on the internet. None of them seems to resolve this issue. The class <code>com.ibm.mq.jms.MQQueueConnectionFactory</code> is indeed present in the MQ jars downloaded. Not sure why JMeter is unable to find this class.</p>
  
  <p>Any help on this, please?</p>