/trunk/JavaSerial/src/com/rm5248/serial/SerialPort.java |
---|
86,6 → 86,7 |
//now let's extract the proper library |
library = SerialPort.class.getClass().getResourceAsStream( "/" + osName + "/" + arch + "/" + nativeLibraryName ); |
Files.copy( library, extractedLib.toPath() ); |
extractedLib.deleteOnExit(); |
System.load( extractedLib.getAbsolutePath() ); |
} catch (IOException e) { |