Class NativeUtils
- java.lang.Object
-
- org.apache.bookkeeper.common.util.affinity.impl.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.
-
-
-
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- Parameters:
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- Throws:
java.lang.Exception
-
-