diff --git a/src/main/java/gnu/io/NativeResource.java b/src/main/java/gnu/io/NativeResource.java index a9ef7c4..147849a 100644 --- a/src/main/java/gnu/io/NativeResource.java +++ b/src/main/java/gnu/io/NativeResource.java @@ -104,6 +104,11 @@ private void inJarLoad(String name)throws UnsatisfiedLinkError, NativeResourceEx private void loadLib(String name) throws NativeResourceException { try { + String libNameFromClasspath = System.getProperty(name + ".classpathlib"); + if(libNameFromClasspath != null) { + inJarLoad(libNameFromClasspath); + return; + } if(OSUtil.isARM()) { //System.err.println("Attempting arm variants"); for(String libName : OSUtil.is64Bit() ? ARM64_LIBS : ARM32_LIBS) {