javax.jms does not exist - compiling activemq examples

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

in apache-activemq-5.1.0\example\src\,

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


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

Asked by: Andrew487 | Posted: 23-01-2022

Answer 1

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.

Answered by: Sophia672 | Posted: 24-02-2022

Similar questions

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)