Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] 64-bit mpiJava in a heterogeneous environment
From: Siegmar Gross (Siegmar.Gross_at_[hidden])
Date: 2012-09-24 06:03:53


I want to use mpiJava in openmpi-1.9a1r27361 in 64-bit mode in a
heterogeneous Solaris and Linux world and have a problem with the
installation of Java 7 update 7. I know that it is not exactly a
question for this group, but perhaps somebody wants to use mpiJava
in the same way and knows a solution for my problem. I have
downloaded and installed the following packages from


The 32-bit Solaris packages contain everyting and the 64-bit packages
contain the add-ons for 64-bit. Especially they create separate
directories for the 64-bit binary programs in <path to Java>/bin and
<path to Java>/jre/bin. It's different for Linux, because both packages
contain everything and 32- and 64-bit binary programs are installed in
the same directory so that they overwrite each other. Therefore I
created subdirectories "amd64" in both "bin" directories, installed
the 64-bit package first and moved the binary programs into the new
subdirectories before I installed the 32-bit version. Unfortunately
that doesn't solve the problem, because the 64-bit version of "javac"
cannot find necessary libraries (although the library directory is

/usr/local/jdk1.7.0_07/bin/amd64/javac: error while loading
  shared libraries: cannot open shared object file:
  No such file or directory

linpc4 fd1026 97 cd /usr/local/jdk1.7.0_07/bin/
linpc4 bin 98 ldd javac => (0xffffe000) => /lib/ (0xf7750000) => /usr/local/jdk1.7.0_07/bin/../jre/lib/i386/jli/ (0xf773b000) => /lib/ (0xf7736000) => /lib/ (0xf75c9000)
        /lib/ (0xf776c000)

linpc4 bin 99 cd amd64/
linpc4 amd64 100 ldd javac => (0x00007fffc11ff000) => /lib64/ (0x00007f11d1083000) => not found => /lib64/ (0x00007f11d0e7f000) => /lib64/ (0x00007f11d0aef000)
        /lib64/ (0x00007f11d12a0000)

The problem is that the path to the library is hardcoded in the Linux
version of "javac" so that it looks in the wrong directory if you move
the program into a subdirectory.

linpc4 amd64 101 strings javac

"Solaris x86_64" doesn't have this problem.

sunpc4 bin 105 cd amd64/
sunpc4 amd64 106 ldd javac => /usr/lib/amd64/ => /usr/local/jdk1.7.0_07/bin/amd64/../../jre/lib/amd64/jli/ => /usr/lib/amd64/ => /usr/lib/amd64/ => /usr/lib/amd64/

sunpc4 amd64 107 strings javac
JAR file
Main class

Has anybody solved this problem without installing two complete
and separate versions of Java? Does anybody know about a Java
package for Linux which behaves in the same manner as the package
for "Solaris x86_64"? Is sombody from Oracle in this group who
can provide such a package on the Java web page? Thank you very
much for any suggestions in advance.

Kind regards