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

前端 未结 12 1316
南笙
南笙 2020-11-29 05:14

I am trying to use the 64 bit rxtx serial communication library (downloaded from cloudhopper) with 64bit windows 7 and eclipse. I get the message: java.lang.Unsatisfi

12条回答
  •  甜味超标
    2020-11-29 06:10

    I had same problem. I was trying to run built jar file from dist folder and it was not working even it was working from NetBeans IDE. I copied rxtxSerial.dll file in dist folder where my main jar file was and it started working fine.

    I was having this error before:

    java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while
    loading gnu.io.RXTXCommDriver
    Exception in thread "Thread-7" java.lang.UnsatisfiedLinkError: no rxtxSerial in
    java.library.path
            at java.lang.ClassLoader.loadLibrary(Unknown Source)
            at java.lang.Runtime.loadLibrary0(Unknown Source)
            at java.lang.System.loadLibrary(Unknown Source)
            at gnu.io.CommPortIdentifier.(CommPortIdentifier.java:123)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.smslib.helper.CommPortIdentifier.(CommPortIdentifier.java
    :72)
            at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java
    :69)
            at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
            at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
            at org.smslib.Service$1Starter.run(Service.java:277)
    

提交回复
热议问题