how to include javax.jms.* in eclipse?

前端 未结 9 1305
太阳男子
太阳男子 2021-02-05 17:10

Iam trying to implement JMS using eclipse.But when I tried to save the code, it showed that javax.jms.* cannot be resolved and there are no suggestions

相关标签:
9条回答
  • 2021-02-05 17:26

    If it is a maven project, add the following dependency to your pom.xml and it should start working as expected.

    <dependency>
    <groupId>javax.jms</groupId>
    <artifactId>jms</artifactId>
    <version>1.1</version>
    </dependency>
    
    0 讨论(0)
  • 2021-02-05 17:35

    When you download the activemq archive file from Internet. Extract this archive: /apache-activemq-x.x.x

    cd into this apache... directory.

    You will see activemq-all-x.x.x jar file.

    Include this in your build path.

    This should resolve your issue.

    0 讨论(0)
  • 2021-02-05 17:37

    When you have downloaded activemq zip file from http://activemq.apache.org then when you extract it, head on to .jar file of activemq(This jar file is required). Now from Eclipse do as follows:

    1. RightClick on Project and go to Properties
    2. Java Build Path tab
    3. Libraries tab
    4. Add External JARs...
    5. Get that .jar file from activemq folder
    0 讨论(0)
提交回复
热议问题