Re: [OMPI users] Error when Building an MPI Java program

2019-04-11 Thread Kawashima, Takahiro
Benson,

I think OpenJDK 9 is enough. I tested Open MPI Java bindings with OpenJDK 8, 9, 
10, and 11 several months ago.

Compiling your MPI Java program requires mpi.jar, which should have been 
installed in $OMPI_INSTALL_DIR/lib. Probably your compilation error message 
indicates mpi.jar is not found.

When you use the mpijavac command of Open MPI, its classpath is automatically 
passed to the javac command. How did you build ping-pong-mpi-tcp? With Maven? 
If so, Maven must know the path or use mpijavac. I don't know about Maven.

Takahiro Kawashima,
Fujitsu

> Thanks. The code is here:
> 
> https://github.com/mboysan/ping-pong-mpi-tcp
> 
> OpenMPI is built using:
> 
> ./configure --prefix=/PATH_TO_HOME_DIRECTORY/openmpi-4.0.1-install \
>  --enable-mpi-java
> 
> The code builds on a number of other machines. Are there any minimum 
> java build requirements for OpenMPI with Java? At present using a 
> machine with Ubuntu 16.04, GCC 5.4.0 and OpenJDK 9
> 
> On 4/9/19 4:10 PM, Jeff Squyres (jsquyres) via users wrote:
> > Can you provide a small, standalone example + recipe to show the problem?
> >
> >
> >
> >> On Apr 8, 2019, at 6:45 AM, Benson Muite  
> >> wrote:
> >>
> >> Hi
> >>
> >> Am trying to build an MPI Java program using OpenMPI 4.0.1:
> >>
> >> I get the following error:
> >>
> >> Compilation failure
> >> /MY_DIRECTORY/ping-pong-mpi-tcp/src/main/java/SocketMainMultiJVM.java:[2,10]
> >>  error: cannot access MPIException
> >>
> >> Any suggestions on what I am doing incorrectly?
> >>
> >> Thanks,
> >>
> >> Benson

___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users


Re: [OMPI users] Error when Building an MPI Java program

2019-04-10 Thread Benson Muite

Thanks. The code is here:

https://github.com/mboysan/ping-pong-mpi-tcp

OpenMPI is built using:

./configure --prefix=/PATH_TO_HOME_DIRECTORY/openmpi-4.0.1-install \
    --enable-mpi-java

The code builds on a number of other machines. Are there any minimum 
java build requirements for OpenMPI with Java? At present using a 
machine with Ubuntu 16.04, GCC 5.4.0 and OpenJDK 9


On 4/9/19 4:10 PM, Jeff Squyres (jsquyres) via users wrote:

Can you provide a small, standalone example + recipe to show the problem?




On Apr 8, 2019, at 6:45 AM, Benson Muite  wrote:

Hi

Am trying to build an MPI Java program using OpenMPI 4.0.1:

I get the following error:

Compilation failure
/MY_DIRECTORY/ping-pong-mpi-tcp/src/main/java/SocketMainMultiJVM.java:[2,10] 
error: cannot access MPIException

Any suggestions on what I am doing incorrectly?

Thanks,

Benson

___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users



___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Re: [OMPI users] Error when Building an MPI Java program

2019-04-09 Thread Jeff Squyres (jsquyres) via users
Can you provide a small, standalone example + recipe to show the problem?



> On Apr 8, 2019, at 6:45 AM, Benson Muite  wrote:
> 
> Hi
> 
> Am trying to build an MPI Java program using OpenMPI 4.0.1:
> 
> I get the following error:
> 
> Compilation failure
> /MY_DIRECTORY/ping-pong-mpi-tcp/src/main/java/SocketMainMultiJVM.java:[2,10] 
> error: cannot access MPIException
> 
> Any suggestions on what I am doing incorrectly?
> 
> Thanks,
> 
> Benson
> 
> ___
> users mailing list
> users@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/users


-- 
Jeff Squyres
jsquy...@cisco.com

___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users


[OMPI users] Error when Building an MPI Java program

2019-04-08 Thread Benson Muite

Hi

Am trying to build an MPI Java program using OpenMPI 4.0.1:

I get the following error:

Compilation failure
/MY_DIRECTORY/ping-pong-mpi-tcp/src/main/java/SocketMainMultiJVM.java:[2,10] 
error: cannot access MPIException


Any suggestions on what I am doing incorrectly?

Thanks,

Benson

___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users