There is a task - to work cross-platform with devices on the corresponding ports (COM / LPT / USB)

I stumbled upon the Java Communication API, but it says that "Oracle no longer supports this API for any Windows platform". What to use and what options to solve the issue?

  • for Windows write dll with native code. For everyone else, apparently already. - KoVadim

2 answers 2

You can dig into JNI

  • And without picking the finished libraries there? - Fe1iX
  • So write the library in C ++, using any known library. - RomanoO

Yes, indeed, javax.comm.* Packages javax.comm.* supported only for Linux / Sparc. Under Windows, you can try commercial libraries, for example jComm