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 ?
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
...