SSJ
3.3.1
Stochastic Simulation in Java
|
A simple library class which helps with loading dynamic libraries stored in the JAR archive. More...
Static Public Member Functions | |
static void | loadLibraryFromJar (String path) throws IOException |
Loads library from current JAR archive. More... | |
A simple library class which helps with loading dynamic libraries stored in the JAR archive.
These libraries usually contain implementation of some methods in native code (using JNI - Java Native Interface).
|
static |
Loads library from current JAR archive.
The file from JAR is copied into system temporary directory and then loaded. The temporary file is deleted after exiting. Method uses String as filename because the pathname is "abstract", not system-dependent.
path | The absolute path to the filename inside JAR (beginning with '/'), e.g. /package/File.ext |
IOException | If temporary file creation or read/write operation fails |
IllegalArgumentException | If source file (param path) does not exist |
IllegalArgumentException | If the path is not absolute or if the filename is shorter than three characters (restriction of { |