parent
c51fe59e2f
commit
9eb5089eae
|
@ -95,8 +95,8 @@ public final class NativeUtils {
|
||||||
*/
|
*/
|
||||||
public static void loadLibraryFromJar(String path) throws IOException {
|
public static void loadLibraryFromJar(String path) throws IOException {
|
||||||
File tempFile = unpackLibraryFromJarInternal(path);
|
File tempFile = unpackLibraryFromJarInternal(path);
|
||||||
try {
|
|
||||||
copyResourceToFile(path, tempFile);
|
copyResourceToFile(path, tempFile);
|
||||||
|
try {
|
||||||
System.load(tempFile.getAbsolutePath());
|
System.load(tempFile.getAbsolutePath());
|
||||||
} finally {
|
} finally {
|
||||||
tempFile.deleteOnExit();
|
tempFile.deleteOnExit();
|
||||||
|
|
Loading…
Reference in New Issue