@Test public void testLoad() { assertFalse(Native.load("notfound")); }
public static boolean load(final String library) { synchronized(lock) { final String path = Native.getPath(library); try { System.load(path); return true; } catch(UnsatisfiedLinkError e) { log.warn(String.format("Failed to load %s:%s", path, e.getMessage()), e); try { System.loadLibrary(library); return true; } catch(UnsatisfiedLinkError f) { log.warn(String.format("Failed to load %s:%s", library, e.getMessage()), e); return false; } } } }
Native { public static boolean load(final String library) { synchronized(lock) { final String path = Native.getPath(library); try { System.load(path); return true; } catch(UnsatisfiedLinkError e) { log.warn(String.format("Failed to load %s:%s", path, e.getMessage()), e); try { System.loadLibrary(library); return true; } catch(UnsatisfiedLinkError f) { log.warn(String.format("Failed to load %s:%s", library, e.getMessage()), e); return false; } } } } }
Native { public static boolean load(final String library) { synchronized(lock) { final String path = Native.getPath(library); try { System.load(path); return true; } catch(UnsatisfiedLinkError e) { log.warn(String.format("Failed to load %s:%s", path, e.getMessage()), e); try { System.loadLibrary(library); return true; } catch(UnsatisfiedLinkError f) { log.warn(String.format("Failed to load %s:%s", library, e.getMessage()), e); return false; } } } } private  Native(); }
Native { public static boolean load(final String library) { synchronized(lock) { final String path = Native.getPath(library); try { System.load(path); return true; } catch(UnsatisfiedLinkError e) { log.warn(String.format("Failed to load %s:%s", path, e.getMessage()), e); try { System.loadLibrary(library); return true; } catch(UnsatisfiedLinkError f) { log.warn(String.format("Failed to load %s:%s", library, e.getMessage()), e); return false; } } } } private  Native(); static boolean load(final String library); }
Native { public static boolean load(final String library) { synchronized(lock) { final String path = Native.getPath(library); try { System.load(path); return true; } catch(UnsatisfiedLinkError e) { log.warn(String.format("Failed to load %s:%s", path, e.getMessage()), e); try { System.loadLibrary(library); return true; } catch(UnsatisfiedLinkError f) { log.warn(String.format("Failed to load %s:%s", library, e.getMessage()), e); return false; } } } } private  Native(); static boolean load(final String library);  }