Another thing is that the Java VM need to know the ports. Just look into this thread Forwarding serial Ports …