java串口编程

报错:no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDrive

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" 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.<clinit>(CommPortIdentifier.java:83)
 at com.three.rxtx.SimpleRead.main(SimpleRead.java:86)

解决方法:将 rxtxSerial.dll复制到 jdk1.6\jre\bin目录下。

 

posted @ 2013-12-20 10:58  溪山晴雪  阅读(768)  评论(0编辑  收藏  举报