Java serial port package javax. Comm Installation

Source: Internet
Author: User

I have been installing a Java serial port package for half a day and cannot find the serial port. Now I am done. Make a record ~

Because it is developed under Windows, go to download the http://mdubuc.freeshell.org/Jolt/javacomm20-win32.zip (complete version 2.0, and examples ). Installation instructions: (the so-called installation here is to put three important files under the specified directory). After extracting the downloaded files, there are three required files in the \ javacomm20-win32 \ commapi directory comm. jar, javax. comm. properties and win32comm. DLL. Upload the file comm. copy jar to % java_home % \ JRE \ Lib \ ext; file javax. comm. copy properties to % java_home % \ JRE \ Lib; file win32comm. copy the DLL to % java_home % \ bin. Note that-% java_home % is the JDK path, not the JRE.   The above attention is very important. We have been copying these three files to the Java \ JRE Directory, which is actually the JRE under JDK. For example, according to the path of my machine, the three files are:   Comm. Jar copy to c: \ Program Files \ Java \ jdk1.6.0 _ 23 \ JRE \ Lib \ ext; Copy javax. Comm. properties C: \ Program Files \ Java \ jdk1.6.0 _ 23 \ JRE \ Lib; copy win32comm. DLL C: \ Program Files \ Java \ jdk1.6.0 _ 23 \ Bin. Bytes ---------------------------------------------------------------------------------------------------- The preceding settings are used in the development environment. If you have already built the project jar and want to double-click it to run it, you need to install it in the JRE environment. In fact, you need to copy the three files C: \ Program Files \ Java \ jre6 directory can be ~
Related Article

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.