how to include javax.jms.* in eclipse?

Galaxin picture Galaxin · Mar 21, 2012 · Viewed 61.6k times · Source

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 as well recommended by it.

How can I include it and use it? when I googled I found that javax.jms.* is not a part of java API,then how can I use it in eclipse and get my program run successfully?

I would like to implement JMS with the help of activemq,what all do I need to download and include in code?

Iam a newbie to this JMS, please suggest some references or sample code that can implement JMS using activemq.

Answer

Vikram picture Vikram · Dec 11, 2012

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.