title: Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException
body: <p>I'm getting below exception when i run my program as below,</p>
  
  <blockquote>
    <p>java -jar MQprogram.jar</p>
  </blockquote>
  
  <p>I have set classpath correctly which is referring to all required jars , 
  "com.ibm.mq.jmqi.jar" also referred in classpath which has MQException.</p>
  
  <pre>
  
  `Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException
  Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQException
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  Could not find the main class: com.test.bo.MQprogram. Program will exit.
  `
  </pre>
  
  <p>I'm still unclear where the bug is. </p>