public class NativeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NATIVE_FOLDER_PATH_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadLibraryFromJar(String path)
Loads library from current JAR archive
The file from JAR is copied into system temporary directory and then loaded.
|
public static final String NATIVE_FOLDER_PATH_PREFIX
public static void loadLibraryFromJar(String path) throws IOException
path - The path of file inside JAR as absolute path (beginning with '/'), e.g. /package/File.extIOException - If temporary file creation or read/write operation failsIllegalArgumentException - If source file (param path) does not existIllegalArgumentException - If the path is not absolute or if the filename is shorter than three characters
(restriction of File.createTempFile(java.lang.String, java.lang.String)).FileNotFoundException - If the file could not be found inside the JAR.Copyright © 2022 LSST. All rights reserved.