ActiveMQ hints, tips and lessons learned.

I'm using ActiveMQ 5.9.0
Java Runtime: Oracle Corporation 1.7.0_45
OS X 10.9.1
This system I had trouble running the activemq-admin script. When running it I see the following output;

Jamies-MBP:bin jamie$ activemq-admin
Error: JAVA_HOME is not defined correctly.
We cannot execute auto

I get this despite me having JAVA_HOME set in my environment. This can be fixed by changing and entry in ~/.activemqrc. Do a search for JAVACMD and you should find the following few lines;

# Location of the java installation
# Specify the location of your java installation using JAVA_HOME, or specify the
# path to the "java" binary using JAVACMD
# (set JAVACMD to "auto" for automatic detection)

The remedy here is to comment out the JAVACMD line which seems to break the activemq-admin script. No need to set the JAVA_HOME here unless you want to over-ride the environment default.


  1. Thanks Jamie! Worked like a charm. I'm curious, do you know why it is breaking the script?


Post a Comment

Popular posts from this blog

Why you should learn Maven

Android logging put to bed.

The Simple Way to Create an AM Authentication Node Project