public class NativeUtils
extends java.lang.Object
Constructor and Description |
---|
NativeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
loadLibraryFromJar(java.lang.String path)
Loads library from current JAR archive
The file from JAR is copied into system temporary directory and then loaded.
|
public static void loadLibraryFromJar(java.lang.String path) throws java.io.IOException
path
- The path of file inside JAR as absolute path (beginning with '/'), e.g. /package/File.extjava.io.IOException
- If temporary file creation or read/write operation failsRH, 2017