|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
package com.ibm.mq does not exist |
« View previous topic :: View next topic » |
Author |
Message
|
Praveen |
Posted: Sun Nov 10, 2002 2:57 am Post subject: package com.ibm.mq does not exist |
|
|
 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 |
|
 |
harwinderr |
Posted: Sun Nov 10, 2002 10:10 pm Post subject: |
|
|
 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 |
|
 |
nimconsult |
Posted: Tue Nov 12, 2002 5:13 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|