Class NativeUtils

  • public final class NativeUtils
    extends java.lang.Object
    Utility class to load jni library from inside a JAR.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void loadLibraryFromJar​(java.lang.String path)
      loads given library from the this jar.
      • Methods inherited from class java.lang.Object

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

      • loadLibraryFromJar

        public static void loadLibraryFromJar​(java.lang.String path)
                                       throws java.lang.Exception
        loads given library from the this jar. ie: this jar contains: /lib/pulsar-checksum.jnilib
        path - : absolute path of the library in the jar
        if this jar contains: /lib/pulsar-checksum.jnilib then provide the same absolute path as input