import java.io.*; import java.util.*; import javax.comm.*; class SendToPort { public static void main(String [] args) { byte b1 = 127; WTConnection wt = new WTConnection(); wt.OpenConnection(); WTCommunication wtc = new WTCommunication(wt); //wt.CloseConnection(); // close the port KeyHandler kh = new KeyHandler(wtc); } }