ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ Java / JMSPackage com.ibm.mq does not exist

Post new topicReply to topic
Package com.ibm.mq does not exist View previous topic :: View next topic
Author Message
Boomn4x4
PostPosted: Thu Aug 11, 2016 5:13 am Post subject: Package com.ibm.mq does not exist Reply with quote

Disciple

Joined: 28 Nov 2011
Posts: 172

I've got a simple, straight forward program I'm trying to compile and I'm getting a package com.ibm.mq does not exist error on and I'm not sure why.

I'm compiling with the classpath flag:
javac -classpath /opt/mqm/java/lib/ SendMq.java

SendMq.java:2: error: package com.ibm.mq does not exist
import com.ibm.mq.*;

[mxb931@mxbscs lib]$ cd /opt/mqm/java/lib
[mxb931@mxbscs lib]$ ll
total 18720
-r-xr-xr-x 1 scs scs 13143 Nov 17 2011 CL3Export.jar
-r-xr-xr-x 1 scs scs 33166 Nov 17 2011 CL3Nonexport.jar
dr-xr-xr-x. 2 scs scs 4096 Apr 30 2015 OSGi
-r-xr-xr-x 1 scs scs 71825 Nov 17 2011 com.ibm.mq.axis2.jar
-r-xr-xr-x 1 scs scs 726054 Nov 17 2011 com.ibm.mq.commonservices.jar
-r-xr-xr-x 1 scs scs 446521 Nov 17 2011 com.ibm.mq.defaultconfig.jar
-r-xr-xr-x 1 scs scs 358973 Nov 17 2011 com.ibm.mq.headers.jar
-r-xr-xr-x 1 scs scs 443980 Nov 17 2011 com.ibm.mq.jar
-r-xr-xr-x 1 scs scs 1974165 Nov 17 2011 com.ibm.mq.jmqi.jar
-r-xr-xr-x 1 scs scs 13855 Nov 17 2011 com.ibm.mq.jms.Nojndi.jar
-r-xr-xr-x 1 scs scs 104815 Nov 17 2011 com.ibm.mq.pcf.jar





What am I missing?
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Aug 11, 2016 12:54 pm Post subject: Reply with quote

Yatiri

Joined: 08 Jul 2010
Posts: 643
Location: Illinois, USA

I am not a Java expert, but this is how I compile the MQ Java samples that I have written:

javac -cp "/opt/mqm/java/lib/*" MQSampleBrowse.java
_________________
MQ administrator since 2010.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSPackage com.ibm.mq does not exist
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.