Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been trying to create a broker on my activemq apache-apollo 1.6 installation. When I execute the following command:

$APOLLO_HOME/bin/apollo create log1broker

I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: /usr/local/lib64/activemq/apache-apollo-1/6
Caused by: java.lang.ClassNotFoundException: .usr.local.lib64.activemq.apache-apollo-1.6
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
Could not find the main class: /usr/local/lib64/activemq/apache-apollo-1.6. Program will exit.
share|improve this question
up vote 1 down vote accepted

This happens because the apollo startup script assumes your PWD is $APOLLO_HOME.

Do it in this order instead:

$ ./bin/apollo create log1broker
share|improve this answer
Thanks a lot, that did it!!! – rahrahruby May 28 '13 at 15:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.