Question

Hi guys I am new to java and when I tried to import com.ibm.mq in eclipse, and it is complaining com.ibm.mq cannot be resolved. Am I missing something ?

Was it helpful?

Solution

Make sure com.ibm.mq.jar is on your classpath. Since you are using Eclipse you can simply add this jar file to the classpath by opening your Projects's properties page. Then select 'Java Build Path'. Next, on the 'Libraries' tab add the jar file

If you are using java or javac use the -classpath flag

java -classpath c:\path\to\com.ibm.mq.jar ...

javac -classpath c:\path\to\com.ibm.mq.jar ...

OTHER TIPS

Grab the Maven dependency

<dependency>
    <groupId>com.ibm</groupId>
    <artifactId>com.ibm.mq</artifactId>
    <version>5.3.07</version>
</dependency>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top