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

后端 未结 5 1784
清歌不尽
清歌不尽 2020-12-16 21:42

Fedora using right now (package is installed Package rxtx-2.2-0.5.20100211.fc15.i686 already installed and latest version ).

I have used/tried:

5条回答
  •  误落风尘
    2020-12-16 22:08

    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.

    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
    

提交回复
热议问题