问题描述
我正在尝试使用64位rxtx串行通信库(从cloudhopper下载)和64位Windows 7和eclipse。我收到消息:
java.lang.UnsatisfiedLinkError:java.library.path中没有rxtxSerial
。 dll位于 / jre / lib
目录以及 Windows / System32
中。 RXTXcomm.jar
位于eclipse的构建路径中以及 jre / lib / ext
目录中。我在后台运行了进程监视器,看到 RXTXcomm.jar
, rxtxSerial.dll
和 rxtxParallel.dll
都已找到并且已经打开,所以我不清楚为什么会出现这个问题。
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.UnsatisfiedLinkError: no rxtxSerial in java.library.path
. The dlls are in the /jre/lib
dir as well as the Windows/System32
. The RXTXcomm.jar
is in the build path for eclipse as well as in the jre/lib/ext
dir. I ran process monitor in the background and and see that RXTXcomm.jar
, rxtxSerial.dll
, and rxtxParallel.dll
are all found and have been opened, So I am unclear as to why this problem is occurring.
任何建议。
推荐答案
转到项目 - >属性 - > Java构建路径 - >找到你的.jar。
单击+打开JAR的属性。
选择本机库位置并编辑它以指向RXTX的共享库(.DLL,.so,.dylib)。
Go to Project -> properties -> Java build path ->Find your .jar.Click on + to open the JAR's properties.Select Native library location and edit it to point to RXTX's shared library (.DLL, .so, .dylib).
这篇关于java.lang.UnsatisfiedLinkError:java.library.path中没有rxtxSerial的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!