title: IBM Message Broker Java API: java.lang.NoClassDefFoundError: com.ibm.mq.MQException
body: <p>I am trying to connect to a broker in Message Broker using ibm's java API: <a href="http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbe43410_.htm" rel="nofollow">http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbe43410_.htm</a></p>
  
  <p>I am trying to use the example provided at that link (I am using a broker,port and queue manager that I KNOW exists) and I get the following error: </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.mq.MQException
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
      at com.ibm.broker.config.proxy.MQBrokerConnectionParameters.getSender(MQBrokerConnectionParameters.java:565)
      at com.ibm.broker.config.proxy.BrokerProxy.&lt;init&gt;(BrokerProxy.java:289)
      at com.ibm.broker.config.proxy.BrokerProxy.getInstance(BrokerProxy.java:777)
      at BarAdmin.connectToBroker(BarAdmin.java:197)
      at BarAdmin.main(BarAdmin.java:52)
  </code></pre>
  
  <p>Any ideas?</p>