且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java.lang.UnsatisfiedLinkError:加载gnu.io.RXTXCommDriver时抛出的java.library.path中没有rxtxSerial

更新时间:2023-10-02 21:59:28

我想问题是你有多个 -Djava.library.path 参数,第二个是覆盖第一个的值。该值也应该是包含库的文件夹的路径,不包括库名。

I guess the problem is that you have multiple -Djava.library.path parameters and the second one is overwriting the value of the first. The value should also be the path to the folder containing the library, not including the library name.

在linux系统上,您应该能够使用冒号组合两个路径参数作为分隔符:

On linux system you should be able to combine both path parameters using a colon as separator:

-Djava.library.path=/usr/lib/rxtx:/usr/lib/jni