Before continue reading this article, I want to tell you that this article is just short documenting about RXTX library for my personal reminder, especially when I need to reuse this library in the future and to prevent time-consuming activity like research em with search engine.

Why we should use RXTX? Why Windows Based OS? When I write this article I running Windows Vista and currently use JDK 1.6 . I searching trough internet and found out that which is java library for make serial COM programming possible with java, only available for Sun OS, Linux and Solaris. Maybe because developer preferred code in C, C++ or C# when it comes to serial COM requirement. But for those who running Windows based OS and still want code the program in java then RXTX is the answer.


Here is where to download RXTX library : download RXTX


RXTX installation procedure if you want to run RXTX enabled programs.

If you just want to run RXTX enabled programs, follow this procedure.

Identify your Java Runtime Environment’s folder. For version 1.6.0, this usually is

c:\Program Files\Java\jre1.6.0_01\

  • Copy rxtxParallel.dll to c:\Program Files\Java\jre1.6.0_01\bin\
  • Copy rxtxSerial.dll to c:\Program Files\Java\jre1.6.0_01\bin\
  • Copy RXTXcomm.jar to c:\Program Files\Java\jre1.6.0_01\lib\ext\

NOTE: When installing on Windows XP Embedded, make sure you include crtdll.dll (in the C Runtime Component) as it is required by rxtxSerial.dll

If you want to develop and compile RXTX enabled programs, for example with the NetBeans IDE, follow this procedure.

Identify your Java Development Kit’s folder. For version 1.6.0, this usually is

c:\Program Files\Java\jdk1.6.0_01\

  • Copy rxtxParallel.dll to c:\Program Files\Java\jdk1.6.0_01\jre\bin\
  • Copy rxtxSerial.dll to c:\Program Files\Java\jdk1.6.0_01\jre\bin\
  • Copy RXTXcomm.jar to c:\Program Files\Java\jdk1.6.0_01\jre\lib\ext\

NOTE: that there is an additional \jre\ subfolder in this path!


Note that all the examples below require that you import the package.

Twitter Subscribe :