javax.jms不存在 - 编译activemq示例

发布于 2024-07-08 20:46:27 字数 586 浏览 7 评论 0原文

我正在尝试编译

apache-activemq-5.1.0\example\src\

TopicPublisher.java、CommandLineSupport.java

中的 activemq 附带的示例,通过 netbeans 进行编译时,它有一些引用问题,表示 javax.jms 不存在。

我尝试过 j2ee.jar、openjms、sun jms 但它们都给出相同的错误。

它还抱怨 org.apache.activemq.util 不存在,但我引用的是 activemq-all-5.1.0.jar。

注意:所有其他对外部罐子的引用都工作正常,

有什么想法吗?

编辑:需要引用的 jar 位于

activemq-core-5.1.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
commons-logging-1.1.jar
geronimo-j2ee-management_1.0_spec-1.0.jar

lib 文件夹中的 activemq 二进制 dist 中

I'm trying to compile the examples that come with activemq

in apache-activemq-5.1.0\example\src\

TopicPublisher.java, CommandLineSupport.java

on compiling thru netbeans it has some referencing problems saying javax.jms does not exist.

I've tried the j2ee.jar, openjms, sun jms but they all give the same error.

its also complaining about org.apache.activemq.util does not exist but I'm referencing activemq-all-5.1.0.jar.

note: all other references to external jars are working fine

any ideas?

Edit: the jars needed to be referenced are

activemq-core-5.1.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
commons-logging-1.1.jar
geronimo-j2ee-management_1.0_spec-1.0.jar

they're in the activemq binary dist in the lib folder

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怀念你的温柔 2024-07-15 20:46:28

lib 目录中包含编译所需的 jar 文件。 JMS API 位于 lib/geronimo-jms-1.1.jar 内。

顺便说一句,你打算如何构建它们? 您使用那里的 Ant 构建吗? 请参阅有关构建它们的文档

In the lib directory are the jars you'll need to compile things. The JMS API is inside lib/geronimo-jms-1.1.jar.

How are you trying to build them BTW? You using the Ant build that is there? See the documentation on building them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文