diff --git a/src/main/java/com/fazecast/jSerialComm/SerialPort.java b/src/main/java/com/fazecast/jSerialComm/SerialPort.java index f4d973b..12405eb 100644 --- a/src/main/java/com/fazecast/jSerialComm/SerialPort.java +++ b/src/main/java/com/fazecast/jSerialComm/SerialPort.java @@ -235,7 +235,7 @@ public final class SerialPort fileContents.close(); // Load and initialize native library - System.load(tempFileName); + System.load(tempNativeLibrary.getAbsolutePath()); initializeLibrary(); } }