OS X Yosemite Using the Java language to access serial devices through the RXTX library

Source: Internet
Author: User

OS X Yosemite uses the Java language to access the serial device through the RXTX library.
The RXTX library you can use is already under Git. The access address is as follows:

Https://git.oschina.net/myaniu/RXTX

After downloading Mac.zip, unzip.
Copy the Rxtxcomm.jar and Librxtxserial.jnilib under the directory to the/library/java/extensions directory and give you access rights.
The specific code is as follows:

CD Macsudo CP rxtxcomm.jar/library/java/extensions/sudo CP Librxtxserial.jnilib/library/java/extensions/sudo CHMOD-R 755/library/java/extensions



After this RXTX package, you can use the Smslib through the serial text message cat to send text messages, you can also use the Arduino development environment under OSX.
The above files come from the following addresses:

http://blog.brianhemeryck.me/installing-rxtx-on-mac-os-mountain-lion/
http://blog.iharder.net/2009/08/18/rxtx-java-6-and-librxtxserial-jnilib-on-intel-mac-os-x/
Http://fizzed.com/oss/rxtx-for-java


OS X Yosemite Using the Java language to access serial devices through the RXTX library

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.