Linux JNI

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
oupablo
Posts: 4
Joined: Tue Dec 03, 2013 8:35 pm

Linux JNI

Post by oupablo »

I'm having some issues getting the paylink to connect using the Tester java app included in the distribution. I'm using the 4-1-12-6 distribution. The AESCDriver works, the AESDemo runs fine and can see the coin device. The CoinRead program runs without issue. However, the Tester java app throws the following error.

Code: Select all

Hello
/usr/lib/jvm/java-7-oracle/bin/java: symbol lookup error: /usr/local/lib/libAESImheiJava.so.1.2.0: undefined symbol: OpenMHEVersion
It looks like someone else was having a similar issue before here but no resolution was ever posted. It looks like the OpenMHEVersion function is defined in Aesimhei.cpp and the driver seems to work fine.

Any help is appreciated.
davebush
Posts: 492
Joined: Fri Oct 22, 2004 12:20 pm

Re: Linux JNI

Post by davebush »

I reproduced your problem, but do not understand the details of what causes it. In the end, I found that specifying the libraries differently when building the JNI so stop the problem happening. I can't see how this problem would have escaped final testing, so I can only imagine that Ubuntu has recently changed "something".

A modified makefile for the Java system is here: http://aesoffice.eu.com/HTTPSpace/Paylink/makefile.zip

If you do the sequence:

Code: Select all

./build.sh
make install
.test.sh
That will rebuild the so for the JNI interface and should fix your problem.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
oupablo
Posts: 4
Joined: Tue Dec 03, 2013 8:35 pm

Re: Linux JNI

Post by oupablo »

Thank you very much. The new makefile looks to be working.
davebush
Posts: 492
Joined: Fri Oct 22, 2004 12:20 pm

Re: Linux JNI

Post by davebush »

You're welcome.

If I ever find out why the problem occurred, I'll post it here.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply