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