public class NativeLibraryUtils extends Object
Constructor and Description |
---|
NativeLibraryUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getOSFamily() |
static void |
loadLibrary(String path,
String libraryName)
Loads library either from a JAR archive, or from file system
The file from JAR is copied into system temporary directory and then loaded.
|
static void |
registerNativePaths(Path... paths) |
static void |
registerNativePaths(String... paths) |
public static void registerNativePaths(Path... paths)
public static void registerNativePaths(String... paths)
public static void loadLibrary(String path, String libraryName) throws IOException
path
- The path from which the load is attemptedlibraryName
- The name of the library to be loaded (without extension)IOException
- If temporary file creation or read/write operation failspublic static String getOSFamily()
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.