|Modifier and Type||Method and Description|
Loads library from classpath The file from classpath is copied into system temporary directory and then loaded.
public static void loadLibraryFromClasspath(String path) throws IOException
path- The file path in classpath as an absolute path, e.g. /package/File.ext (could be inside jar)
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
Copyright © 2012–2016 Pi4J. All rights reserved.