`

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/commonserv

 
阅读更多

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/commonservices/CommonServicesException
 at com.ibm.mq.MQSESSION.getJmqiEnv(MQSESSION.java:134)
 at com.ibm.mq.MQSimpleConnectionManager.<init>(MQSimpleConnectionManager.java:93)
 at com.ibm.mq.MQEnvironment.<clinit>(MQEnvironment.java:574)
 at com.mqmanager.MQManager.testQmgrConnection(MQManager.java:22)
 at com.mqmanager.MQManager.main(MQManager.java:60)
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.commonservices.CommonServicesException
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 ... 5 more

 

解决方案:

少了一个com.ibm.mq.commonservices.jar 添加进去即可.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics