Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
also include winpthread.dll in the jarfile
[simgrid.git] / src / bindings / java / org / simgrid / msg / Msg.java
index 8153a42..c442da4 100644 (file)
@@ -16,6 +16,15 @@ public final class Msg {
        public static void nativeInit() {
                if (isNativeInited)
                        return;
+               try {
+                       NativeLib.nativeInit("winpthread");
+               } catch (Exception e)  {
+                       if (System.getProperty("os.name").toLowerCase().startsWith("win")) {
+                               System.err.println("Cannot load winpthread.dll:");
+                               e.printStackTrace();
+                       }
+               }
+
                NativeLib.nativeInit("simgrid");
                NativeLib.nativeInit("simgrid-java");      
                isNativeInited = true;