JAVA MQ 异常

Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/ResourceException 
at com.ibm.mq.MQEnvironment. <clinit>(MQEnvironment.java:441) 
at com.ibm.mq.pcf.PCFAgent.connect(PCFAgent.java:276) 
at com.ibm.mq.pcf.PCFAgent. <init>(PCFAgent.java:190) 
at com.ibm.mq.pcf.PCFMessageAgent. <init>(PCFMessageAgent.java:160) 
at MQTest.MQTestMain.testName(MQTestMain.java:33) 
at MQTest.MQTestMain.main(MQTestMain.java:17)


解决:
增加 mq_install\java\lib到你的PATH
javax/resource/ResourceException 这个类是在connector.jar中

你可能感兴趣的:(java,thread,IBM)