fun loadLibrary(path: Path, loadDirectly: Boolean = false): Unit
Load a library from a given path.
loadDirectly
- If true, it will attempt to load the library directly using the absolute
path, otherwise it will attempt to modify the java.library.path
variable and load it by name.
fun loadLibrary(paths: List<Path>, loadDirectly: Boolean = false): Unit
Loads libraries from a given path.
paths
- List containing path to the libraries
loadDirectly
- If true, it will attempt to load the libraries directly using the absolute
path, otherwise it will attempt to modify the java.library.path
variable and load it by name.