The following are performed on a 64-bit WIN8 system:
1. Code compilation
Serial communication needs to download two connection library files, Rxtxserial.dll,rxtxparallel.dll. Online said to put these two files to <java_home>\jre\bin, but compile error, and later I put them to <jar_home>\bin compiled passed, my directory is: "C:\Program files\java\ Jre1.8.0_31\bin "
If you are creating a MAVEN project with the following dependencies:
<dependency>
<groupId>org.rxtx</groupId>
<artifactId>rxtx</artifactId>
<version>2.1.7</version>
</dependency>
If none of the above, can give me a message.
2, test the joint (not finished to be continued)
Detailed I will not say, the project reason, but also my own reasons to read the serial port, mainly encountered a head-through problems, I hope you don't and I make the same mistake, find more virtual serial testing tools, their own multi-test bar.
Here is the article to go to the Netizen: can increase the knowledge
http://blog.csdn.net/kabini/article/details/1601324
Java Serial communication