开发环境是myeclipse 参照这个帖子
参照帖子[url=http://blog.chinaunix.net/u3/94064/showart_2144948.html]http://blog.chinaunix.net/u3/94064/showart_2144948.html[/url]
测试了一下会报错
java.lang.unsatisfiedlinkerror: no rxtxserial in java.library.path thrown while loading gnu.io.rxtxcommdriver<br>exception in thread "main" java.lang.unsatisfiedlinkerror: no rxtxserial in java.library.path<br> at java.lang.classloader.loadlibrary(unknown source)<br> at java.lang.runtime.loadlibrary0(unknown source)<br> at java.lang.system.loadlibrary(unknown source)<br> at gnu.io.commportidentifier.<clinit>(commportidentifier.java:83)<br> at com.three.rxtx.simpleread.main(simpleread.java:86)
网上找了些帖子 最后说是要在 myeclipse \jre\bin中加入rxtxserial.dll
记录一下...
参照帖子[url=http://blog.chinaunix.net/u3/94064/showart_2144948.html]http://blog.chinaunix.net/u3/94064/showart_2144948.html[/url]
测试了一下会报错
java.lang.unsatisfiedlinkerror: no rxtxserial in java.library.path thrown while loading gnu.io.rxtxcommdriver<br>exception in thread "main" java.lang.unsatisfiedlinkerror: no rxtxserial in java.library.path<br> at java.lang.classloader.loadlibrary(unknown source)<br> at java.lang.runtime.loadlibrary0(unknown source)<br> at java.lang.system.loadlibrary(unknown source)<br> at gnu.io.commportidentifier.<clinit>(commportidentifier.java:83)<br> at com.three.rxtx.simpleread.main(simpleread.java:86)
网上找了些帖子 最后说是要在 myeclipse \jre\bin中加入rxtxserial.dll
记录一下...