什么是最简单的“免费”?在Java中实现串行通信的方法?
我是 Java 新手,并且为自己设定了一个要编写的项目,以便我可以进行一些“实践”学习。我精通 C++,但想在我的技能组合中添加另一种语言。
无论如何,该项目的一部分包括串行通信。我的目标是 Windows XP 平台,这个项目并不真正需要跨平台。
我正在使用 NetBeans,在快速研究之后,我发现对串行通信的“内置”支持不再存在。
进一步的搜索让我找到了 RXTX,但是,在完成简单的安装之后,他们列出的(在 wiki 上)示例似乎不起作用。
我见过几个可购买的串行库,但我不想走这条路,至少现在还不想。
那么,最好的前进方向是什么?坚持使用 RXTX 并在那里进行故障排除?或者有没有更简单使用的替代方法?
I'm new to Java, and have set myself a project to write so that I can do some "hands on" learning. I'm fluent with C++, but want to add another language to my skill-set.
Anyway, part of that project includes serial communications. I'm targeting a Windows XP platform, and cross-platform isn't really needed for this project.
I'm using NetBeans, and after quickly looking into things, I find that "in-built" support for serial communication doesn't exist any more.
Further searching led me to RXTX, however, after following the simple installation, their listed (on the wiki) example doesn't appear to work.
I have seen a couple of purchasable serial libraries, but I don't want to go down that path, at least not yet.
So, what is the best way forward? Persisting with RXTX and troubleshooting there? Or is there an alternate way that is simpler to use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自此处:
From here: