From: Martin Quinson Date: Sat, 12 Dec 2015 22:23:11 +0000 (+0100) Subject: don't die when libboost_context cannot be loaded X-Git-Tag: v3_13~1454 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/376ed6e82fcbe4216a4a32415f8d7aecde8952aa?hp=a502b8801282e2b64fcb6bb0e74369797c4da45c don't die when libboost_context cannot be loaded --- 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); + } } } }