Hi Rishi,
Even from commandline it throws the same error:
D:\github\serial-communication-manager\prebuilt-release>java -classpath sp-core.jar;sp-tty.jar;. test23.Test23
com.serialpundit.core.SerialComException: The parameter is incorrect.
at com.serialpundit.serial.internal.SerialComPortJNIBridge.setRTS(Native Method)
at com.serialpundit.serial.SerialComManager.setRTS(SerialComManager.java:1505)
at test23.Test23.main(Test23.java:65)
Please let me know if I can do more testing.
Regards,
Andreas