質問

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

他のヒント

Grab the Maven dependency

<dependency>
    <groupId>com.ibm</groupId>
    <artifactId>com.ibm.mq</artifactId>
    <version>5.3.07</version>
</dependency>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top