Install Open MQ 4.4 on Mac OS X 10.6 (Snow Leopard)

Intro

Snow Leopard comes with a native 64 bit Java 1.6 environment. The Open MQ binaries are made for the JDK 1.5 in 32 bit. This article shows how to make Open MQ work on OS X 1.6 by compiling from source.

Steps

  • Set environment
    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
    export ANT_HOME=$HOME/apache-ant-1.7.1
    export ANT_OPTS=-Xmx512m
    export IMQ_HOME=$HOME/mq/dist/mq
    export CLASSPATH=$CLASSPATH:$IMQ_HOME/lib/jms.jar:$IMQ_HOME/lib/imq.jar
  • Download and unpack ant in your home directory
  • Download and uppack OpenMQ 4.4 source in your home directory
  • Create extlib:
    mkdir ~/mq/extlib
  • Download the Java EE 5 API into extlib:

    http://download.java.net/maven/1/javaee/jars/javaee-api-5.jar

  • Compile Open MQ:
    cd ~/mq
    ant
  • Test Open MQ:
    cd dist/mq/bin
    ./imqbrokerd -tty &
    cd ../examples/helloworld/helloworldmessage
    java HelloWorldMessage
    You should see
    Sending Message: Hello World
    Read Message: Hello World
    And some debug messages on the imqbrokerd console.

References

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogplay
  • email
  • LinkedIn
  • PDF
  • Ping.fm
  • RSS
  • Slashdot
  • Twitter
This entry was posted in Java and tagged . Bookmark the permalink.

One Response to Install Open MQ 4.4 on Mac OS X 10.6 (Snow Leopard)

  1. bob says:

    Great notes but it seems that the official ant build now works, at least version 10.6.3.

    I went by the ant instructions here: http://download.java.net/mq/open-mq/4.4u1/b7-fi... and all worked fine.

blog comments powered by Disqus