Re: problems compiling mama jni component

Roan Horning


Thank you for your response. I did have OpenJDK and not a valid JDK
from Oracle. I downloaded JDK 6 from Oracle, and have followed your
suggestion to make sure it is the system default:

$ echo $JAVA_HOME

$ echo $PATH

$ which java

$ which javac

$ which ant

$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b04)
Java HotSpot(TM) Server VM (build 20.8-b03, mixed mode)

$ javac -version
javac 1.6.0_33

Is this a correct version of Java from Oracle to use, or did I
download the wrong SDK?

after running cleaning the project, re-running, configure --avis-path=/usr/local, make and
then make mamajni I get the following error:

make[4]: Entering directory `/home/x15/Development/openMAMA/mama/jni/src/c'

/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -I/home/x15/Development/jdk1.6.0_33/include
-I/opt/openmama/include -pedantic -Wno-long-long -g -O2 -pedantic
-Wno-long-long -I./../../../../common/c_cpp/src/c
-I./../../../../mama/c_cpp/src/c -MT mamasubscriptionjni.lo -MD -MP
-MF .deps/mamasubscriptionjni.Tpo -c -o mamasubscriptionjni.lo

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../..
-I/opt/openmama/include -pedantic -Wno-long-long -g -O2 -pedantic
-Wno-long-long -I./../../../../common/c_cpp/src/c
-I./../../../../mama/c_cpp/src/c -MT mamasubscriptionjni.lo -MD -MP
-MF .deps/mamasubscriptionjni.Tpo -c mamasubscriptionjni.c -fPIC
-DPIC -o .libs/mamasubscriptionjni.o

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h: No
such file or directory
compilation terminated.

make[4]: *** [mamasubscriptionjni.lo] Error 1

I am using the version of ant provided by Ubuntu. Any suggestions?

Thanks for your time,


On Mon, Jul 23, 2012 at 3:27 PM, Mike Schonberg <mschonberg@...> wrote:

You need a valid JDK 5 or 6 from Oracle installed on your machine as well as ant. The JDK bin directory, and ant should be in your path before any other directories that may have a javac (from OpenJDK perhaps). Also you need to set your JAVA_HOME environment variable to point to the JDK.

See the README file for details.


-----Original Message-----
From: openmama-users-bounces@... [mailto:openmama-
users-bounces@...] On Behalf Of Roan Horning
Sent: Saturday, July 21, 2012 4:18 AM
To: openmama-users@...
Subject: [Openmama-users] problems compiling mama jni component


I am having a problem compiling the mama jni code. I receive the
following error message:

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h:
No such file or directory

Double checking, I find that there is no dictionaryimpl.h in

I found dictionaryimpl.h in:


if I copy it to the mamajni folder and try compiling again, I get the
error message

mamasubscriptionjni.c:1109:5: error: unknown type name

It appears that all the other header files in the
mama/jni/src/c/mamajni/ directory are being generated. I am guessing
something in my build environment is preventing the correct
dictionaryimpl.h from being generated also.

I am compiling the openMAMA code cloned from the git repository.
My OS is the 32 bit version of Ubuntu 11.10 with kernel
3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686
i686 i386 GNU/Linux

Any help is greatly appreciated

Openmama-users mailing list
Please consider the environment before printing this email.

Visit our website at


Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.

Join to automatically receive all group messages.