Update LoadLibrary.java
This commit is contained in:
parent
9bbb59695a
commit
38ccacd18a
@ -144,7 +144,7 @@ public class LoadLibrary {
|
||||
}
|
||||
InputStream libInputStream;
|
||||
try {
|
||||
libInputStream = (InputStream) this.getClass().getDeclaredMethod("getLibraryAsStream").invoke(InputStream.class);
|
||||
libInputStream = (InputStream) classForResource.getDeclaredMethod("getLibraryAsStream").invoke(InputStream.class);
|
||||
} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
|
||||
throw new IOException("Native libraries for platform " + os + "-" + arch + " not found!", e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user