Ralph Castain 2012-01-30, 23:58
-Re: MPI: Java/JNI help
Kihwal Lee 2012-01-31, 00:13
It doesn't have to be static.
Do architectures match between the node manager jvm and the library?
If one is 32 bit and the other is 64, it won't work.
On 1/30/12 5:58 PM, "Ralph Castain" <[EMAIL PROTECTED]> wrote:
As per earlier emails, I'm just about ready to release the Java MPI bindings. I have one remaining issue and would appreciate some help.
We typically build OpenMPI dynamically. For the Java bindings, this means that the JNI code underlying the Java binding must dynamically load OMPI plug-ins. Everything works fine on Mac. However, on Linux, I am getting dynamic library load errors.
I have tried setting -Djava.library.path and LD_LIBRARY_PATH to the correct locations. In both cases, I get errors from the JNI code indicating that it was unable to open the specified dynamic library.
I have heard from one person that JNI may need to be built statically, and I suppose it is possible that Apple's customized Java implementation specifically resolved that problem. However, all the online documentation I can find indicates that Java on Linux should also be able to load dynamic libraries - but JNI is not specifically addressed.
Can any of you Java experts provide advice on this behavior? I'd like to get these bindings released!
Ralph Castain 2012-01-31, 00:37
Ralph Castain 2012-01-31, 19:07
Ralph Castain 2012-01-31, 22:34
Kihwal Lee 2012-01-31, 23:35
Ralph Castain 2012-02-01, 16:37
Noah Watkins 2012-01-31, 00:24