if (System.getProperty("os.name").toLowerCase().startsWith("win"))
NativeLib.nativeInit("winpthread-1");
+ try {
+ NativeLib.nativeInit("boost_context");
+ } catch (Exception e) {/* Dont care */}
NativeLib.nativeInit("simgrid");
- NativeLib.nativeInit("surf-java");
NativeLib.nativeInit("simgrid-java");
isNativeInited = true;
}
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);
+ }
}
}
}