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

前端 未结 12 1228
南笙
南笙 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:04

    Windows user : my problem was actually that I was placing the rxtxSerial.dll and the rxtxParallel.dll files in the wrong directory.

    In my case, they were in [...]/jdk1.7.0_09/bin/ instead of [...]/jre7/bin/, although paths may differ for different versions of Java.

    After all it's logic, if we want our JAR to run outside our IDE, we must have the dlls in our java running environment, not in our development environment :)

提交回复
热议问题