Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个软件,我在小程序 java 上使用 RXTXcomm.jar,在小程序内部我正在与端口串行通信,所以,我需要通信,它适用于 2 个版本,x86 和 x64,但 RXTXcomm.jar 具有相同命名为 2 个文件,如何在我的应用程序中使用这两个 jar?
jar (RXTXcomm.jar) 与提供的 API 相同。不同之处在于本机实现(Windows 中的 dll),因此您可以尝试为支持的不同平台生成不同的小程序,并让用户选择合适的小程序。另一种方法是尝试捆绑所有本机库并且可以工作。(检查 rxtx-2.1-7-bins-r2.zip 版本内容)。