Update LoadLibrary.java

This commit is contained in:
Andrea Cavalli 2020-10-29 15:04:47 +01:00
parent 9bbb59695a
commit 38ccacd18a

View File

@ -144,7 +144,7 @@ public class LoadLibrary {
} }
InputStream libInputStream; InputStream libInputStream;
try { try {
libInputStream = (InputStream) this.getClass().getDeclaredMethod("getLibraryAsStream").invoke(InputStream.class); libInputStream = (InputStream) classForResource.getDeclaredMethod("getLibraryAsStream").invoke(InputStream.class);
} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
throw new IOException("Native libraries for platform " + os + "-" + arch + " not found!", e); throw new IOException("Native libraries for platform " + os + "-" + arch + " not found!", e);
} }