(File lib)
| 144 | } |
| 145 | |
| 146 | private static void loadLib(File lib) { |
| 147 | try { |
| 148 | System.load(lib.getAbsolutePath()); |
| 149 | } catch (UnsatisfiedLinkError e) { |
| 150 | e.printStackTrace(); |
| 151 | System.out.println(e.getMessage()); |
| 152 | System.out.println("Cannot load native library " + lib.getAbsolutePath()); |
| 153 | System.out.println("The program has terminated!"); |
| 154 | System.exit(1); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | private native String resolveDeviceAttachedToNative(String serial); |
| 159 |
no test coverage detected