Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the ability to write internal plugins in Java
[simgrid.git] / src / bindings / java / org / simgrid / NativeLib.java
index e2931c5..7c08bc2 100644 (file)
@@ -27,7 +27,6 @@ public final class NativeLib {
                        NativeLib.nativeInit("boost_context");
                } catch (Exception e) {/* Dont care */}
                NativeLib.nativeInit("simgrid");
-               NativeLib.nativeInit("surf-java");
                NativeLib.nativeInit("simgrid-java");      
                isNativeInited = true;
        }
@@ -41,10 +40,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);
+                               }
                        }
                }
        }