Download a binary distribution of ActiveMQ and unpack it into some directory.
To run an ActiveMQ broker, type the following commands from the directory in which you have just unpacked the ActiveMQ distribution.
cd bin activemq
The ActiveMQ broker should now run. You can configure the broker by specifying an Xml Configuration file as a parameter to the activemq command.
You can now run the Examples using Ant.
See the getting started guide for details of which jars you need to add to your classpath to start using ActiveMQ in your Java code