From 376ed6e82fcbe4216a4a32415f8d7aecde8952aa Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 12 Dec 2015 23:23:11 +0100 Subject: [PATCH] don't die when libboost_context cannot be loaded --- src/bindings/java/org/simgrid/NativeLib.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bindings/java/org/simgrid/NativeLib.java b/src/bindings/java/org/simgrid/NativeLib.java index e2931c5a3d..daef72f6f5 100644 --- a/src/bindings/java/org/simgrid/NativeLib.java +++ b/src/bindings/java/org/simgrid/NativeLib.java @@ -41,10 +41,12 @@ public final class NativeLib { try { System.loadLibrary(name); } catch (UnsatisfiedLinkError e2) { - System.err.println("Cannot load the bindings to the "+name+" library in path "+getPath()); - e.printStackTrace(); - System.err.println("This jar file does not seem to fit your system, and I cannot find an installation of SimGrid."); - System.exit(1); + if (! name.equals("boost_context")) { + System.err.println("Cannot load the bindings to the "+name+" library in path "+getPath()); + e.printStackTrace(); + System.err.println("This jar file does not seem to fit your system, and I cannot find an installation of SimGrid."); + System.exit(1); + } } } } -- 2.20.1