How do I get Java to use the serial port in Linux?

前端 未结 5 1080
礼貌的吻别
礼貌的吻别 2021-01-12 11:15

We make use of a java application that manages a pinpad via the serial port. This works perfectly on windows with the Sun Comm.jar, the supplied dll and the properties file.

5条回答
  •  再見小時候
    2021-01-12 11:32

    We've been using the SerialIO libraries for Java serial communications on both Windows and Linux for several years now with great results (and no, I don't work for them :-)):

    http://serialio.com/products/serialport/serialport.php

    The libraries do not autodetect the available serial ports on Linux though - you have to manually configure them.

提交回复
热议问题