Java Serial communication

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.