如何在 Eclipse 中包含 javax.jms.*? [英] how to include javax.jms.* in eclipse?
问题描述
我正在尝试使用eclipse实现JMS.但是当我尝试保存代码时,它显示javax.jms.*无法解析
并且没有没有建议
也是它推荐的.
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.
如何包含并使用它?当我用谷歌搜索时,我发现 javax.jms.* 不是 java API 的一部分,那么我如何在 eclipse 中使用它并让我的程序成功运行?
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?
我想在activemq的帮助下实现JMS
,我需要下载什么并包含在代码中?
I would like to implement JMS with the help of activemq
,what all do I need to download and include in code?
我是这个 JMS 的新手,请推荐一些可以使用 activemq 实现 JMS 的参考或示例代码.
Iam a newbie to this JMS, please suggest some references or sample code that can implement JMS using activemq.
推荐答案
当您从 Internet 下载 activemq 存档文件时.提取此存档:/apache-activemq-x.x.x
When you download the activemq archive file from Internet. Extract this archive: /apache-activemq-x.x.x
cd 进入这个 apache... 目录.
cd into this apache... directory.
您将看到 activemq-all-x.x.x jar 文件.
You will see activemq-all-x.x.x jar file.
将其包含在您的构建路径中.
Include this in your build path.
这应该可以解决您的问题.
This should resolve your issue.
这篇关于如何在 Eclipse 中包含 javax.jms.*?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!