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目录下。
每一个不曾起舞的日子,都是对生命的辜负。