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 Index » IBM MQ Java / JMS » package com.ibm.mq does not exist

Post new topic  Reply to topic
 package com.ibm.mq does not exist « View previous topic :: View next topic » 
Author Message
Praveen
PostPosted: Sun Nov 10, 2002 2:57 am    Post subject: package com.ibm.mq does not exist Reply with quote

Apprentice

Joined: 23 Oct 2002
Posts: 40
Location: Bangalore

Hi,
I am trying to compile a simple MQ java program in Sun Solaris machine. I am getting the following error.
"MQSample.java:1: package com.ibm.mq does not exist"
Following are the settings

CLASSPATH="/usr/j2se/bin:/opt/j2se/lib:/opt/mqm/java/lib:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/samples"

PATH="/usr/j2se/bin:/usr/sbin:/usr/bin:/opt/mqm/java/lib:/opt/mqm/java/bin"

SHLIB_PATH="/opt/mqm/java/lib"

Can you please tell me where I went wrong..?
_________________
Thanks,

Praveen K
Back to top
View user's profile Send private message
harwinderr
PostPosted: Sun Nov 10, 2002 10:10 pm    Post subject: Reply with quote

Voyager

Joined: 29 Jan 2002
Posts: 90

Very surprising !!!
Well, what I can sugesst is :-
1. After setting the classpath, confirm it by giving echo $CLASSPATH to make sure you have what you want to be there
2. If not successfull, try setting the classpath in the javac compiler. (using the -classpath flag)
3. If not successfull, try installing your ma88 package once more.
4. If still not, GOD Help You

Later,
Harwinder
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
nimconsult
PostPosted: Tue Nov 12, 2002 5:13 am    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

The minimal classpath I use is:

CLASSPATH=.:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/connector.jar:/opt/mqm/java/lib/jta.jar:/opt/mqm/java/lib:/opt/mqm/java/samples/base

(you need to add other jar files if you use JMS or JNDI)

For complete classpath description read the Using Java manual.
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » package 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.