javax.jms不存在 - 编译activemq示例
我正在尝试编译
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.