java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path:

230 Views Asked by At

We are using RXTX library to communicate from Java web based program to serial port.

But we are getting "java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path:" error when trying to connect to serial port.

We are using Eclipse and Tomcat (as app server). It's a web based application.

Added [ -Djava.library.path="C:\directory\rxtx"] to VM arguments in tomcat run configuration.

File "rxtxSerial64.dll" is in "C:\directory\rxtx" and "rxtx-2.2.jar" is in WEB-INF/lib folder.

How can we resolve this error?

0

There are 0 best solutions below