[java] How to send data to COM PORT using JAVA?

Possible Duplicate:
Java Serial Communication on Windows

Friends, I want to connect and transfer data to COM PORT (either virtual or original) in JAVA?

This question is related to java serial-port

The answer is


The Java Communications API (also known as javax.comm) provides applications access to RS-232 hardware (serial ports): http://www.oracle.com/technetwork/java/index-jsp-141752.html


An alternative to javax.comm is the rxtx library which supports more platforms than javax.comm.