|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
package com.ibm.mq.constants |
« View previous topic :: View next topic » |
Author |
Message
|
ivanachukapawn |
Posted: Mon Jan 20, 2014 7:18 am Post subject: package com.ibm.mq.constants |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
I am using NetBeans 7.4 - when import
com.ibm.mq.constants.MQConstants; NetBeans red-underlines the "com" and provides the following message:
package com.ibm.mq.constants does not exist.
However, the code
Code: |
int test = MQConstants.getIntValue("MQCA_A_NAME"); |
compiles OK and runs OK. what's going on? Please excuse my Java greenie-hood. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jan 20, 2014 7:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
does your IDE have the correct jars on the classpath?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ivanachukapawn |
Posted: Mon Jan 20, 2014 7:58 am Post subject: |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
I wonder what all the "correct" jars would be for this program. So I included every jar provided in the distribution in
C:\Program Files (x86)\IBM\WebSphere MQ\java\lib
quite a long list. But I still have a red-underlined "com" in my import statement
import com.ibm.mq.constants.MQConstants;
and then a successful compile and run with
Code: |
PCFParameter[] parameters =
{
new MQCFST(MQConstants.getIntValue("MQCA_Q_NAME"), "*"),
new MQCFIN(MQConstants.getIntValue("MQIA_Q_TYPE"),
MQConstants.getIntValue("MQOT_ALL"))
}; |
|
|
Back to top |
|
 |
ivanachukapawn |
Posted: Mon Jan 20, 2014 8:20 am Post subject: |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
OK. Sorry. To forestall any more perturbations on this subject, I found the jar file for MQConstants - it is com.ibm.mq.jmqi.jar - thanks for the help! |
|
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
|
|
|
|