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

前端 未结 5 1083
礼貌的吻别
礼貌的吻别 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:46

    I know this is an old question but I have created a Java package and native library to allow serial port read and write, currently in synchronous mode only.

    It's open source and available on GitHub:

    j232 - The Java source code

    libj232 - j232's native library.

    The wiki page is here.

    Note this is a Linux only package and library.

提交回复
热议问题