Skip to content

Commit

Permalink
java: catch exceptions if we fail to load mpi_java
Browse files Browse the repository at this point in the history
library.

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
  • Loading branch information
hppritcha committed Aug 20, 2022
1 parent 263dca3 commit bc3bac9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ompi/mpi/java/java/MPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,15 @@ public final class MPI

static
{
System.loadLibrary("mpi_java");
try
{
System.loadLibrary("mpi_java") ;
}
catch (UnsatisfiedLinkError e)
{
System.err.println("mpi java lib failed to load" + e + "\n") ;
System.exit(1) ;
}

DATATYPE_NULL = new Datatype();

Expand Down

0 comments on commit bc3bac9

Please sign in to comment.