Java通讯API [英] java communication api

查看:118
本文介绍了Java通讯API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Java comm api进行串行端口通信,我正在使用的IDE是netbeans,但不知何故我无法使其正常工作,并且不断出现此错误:

I am trying to use java comm api for serial port communication, the IDE i am using is netbeans , but somehow i can''t make it work and i keep getting this mistake:

Caught java.lang.UnsatisfiedLinkError: no Serial in java.library.path while loading driver gnu.io.RXTXCommDriver


谁能告诉我如何解决它吗?
非常感谢...


Can anyone tell me how to fix it???
Thanks a lot...

推荐答案

与驱动程序有关.

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/UnsatisfiedLinkError.html [ ^ ]

据我所知,拔掉USB端口时RXTX崩溃了.你做了那样的事吗?

如果是这样,请尝试使用Windows Java串行Com端口驱动程序,该驱动程序是专门为Windows用户设计的.我使用它是因为易于使用.
Related with the drivers seems.

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/UnsatisfiedLinkError.html[^]

As far as I know RXTX is crashing when the USB port was unplugged. Did you do something like that?

If so try with the Windows Java Serial Com Port Driver, specifically design for Windows users. I am using it because of the ease of use.


这篇关于Java通讯API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆