How to use Java library. Add rxtxserial to path?

See English answer > java lang.UnsatisfiedLinkError: no rxtxSerial in java. library. path11

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading
gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in 
java.library.path

I even tried to install librxtx Java deb. But it did not solve the problem I searched the file system and found librxtxserial So is located in / usr / lib / JNI

How to solve this problem?

Thank you in advance

Solution

Find your jar - > properties - > java build path in project Click to open the properties of the jar, select the native library location and edit it to point to the shared library (. DLL,. So,. Dylib) of rxtx

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>