Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[win+java] fix the name of libwinpthread-1.dll
[simgrid.git] / src / bindings / java / org / simgrid / msg / Msg.java
index 8153a42..d46b4d8 100644 (file)
@@ -16,6 +16,10 @@ public final class Msg {
        public static void nativeInit() {
                if (isNativeInited)
                        return;
+               
+               if (System.getProperty("os.name").toLowerCase().startsWith("win"))
+                       NativeLib.nativeInit("winpthread-1");
+
                NativeLib.nativeInit("simgrid");
                NativeLib.nativeInit("simgrid-java");      
                isNativeInited = true;