Package org.simgrid

Class NativeLib


  • public final class NativeLib
    extends java.lang.Object
    Helper class loading the native functions of SimGrid that we use for downcalls Almost all org.simgrid.msg.* classes contain a static bloc (thus executed when the class is loaded) containing a call to this.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Hidden debug main() function It is not the Main-Class defined in src/bindings/java/MANIFEST.in (org.simgrid.msg.Msg is), so it won't get executed by default.
      static void nativeInit()
      Main function loading all the native classes that we need
      static void nativeInit​(java.lang.String name)
      Helper function trying to load one requested library
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Hidden debug main() function It is not the Main-Class defined in src/bindings/java/MANIFEST.in (org.simgrid.msg.Msg is), so it won't get executed by default. But that's helpful to debug linkage errors, if you know that it exists. It's used by cmake during the configure, to inform the user.
      • nativeInit

        public static void nativeInit()
        Main function loading all the native classes that we need
      • nativeInit

        public static void nativeInit​(java.lang.String name)
        Helper function trying to load one requested library