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

后端 未结 5 1770
清歌不尽
清歌不尽 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:19

    We had the same problem on linux. The key for us to fix it was

    1. Use colon ":" to separate java.library.path elements
    2. Use forward slash for directory separators

    In our case we used a relative path like this

    -Djava.library.path=jar/linux64:jars
    

    The path is relative to the startup path. E.g. when running from netbeans the startup directory is the project directory.

提交回复
热议问题