Add a reference to "RXTXComm.jar" and "RedComm.jar". To do so right click the "Libraries" subnode in your Netbeans project and selecting "Add JAR/Folder". Navigate to the folder, where "redcomm.jar" resides in and select it. Click open. Repeat this step for "RXTXComm.jar".