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 c442da4..d46b4d8 100644 (file)
@@ -16,14 +16,9 @@ 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();
-                       }
-               }
+               
+               if (System.getProperty("os.name").toLowerCase().startsWith("win"))
+                       NativeLib.nativeInit("winpthread-1");
 
                NativeLib.nativeInit("simgrid");
                NativeLib.nativeInit("simgrid-java");