1,Windows环境
首先下载jar包http://rxtx.qbang.org/wiki/index.php/Download,rxtx-2.1-7里面有Linux环境和Windows环境【只有32位】。 rxtx-2.2pre有Windows64位。
RXTXcomm.jar goes in \jre\lib\ext (under java)
rxtxSerial.dll goes in \jre\bin
2.Linux环境下:Linux (only x86, x86_64, ia64 here but more in the ToyBox)
RXTXcomm.jar goes in /jre/lib/ext (under java)
librxtxSerial.so goes in /jre/lib/[machine type] (i386 for instance)
[machine type]机器型号,若是64位,则将其改成x86_64