不满意的链接:SolarisParallel using rxtx to Replace java comm api in Windows XP
我正在尝试使用 rxtx 2.0 jars 和 dll 在 windows xp 中使用 java comm api,我将 RXTXcomm.jar 复制到 jre\ext 并将 rxtxSerial.dll 和 rxtxParallel.dll 复制到 jre\bin
当我运行程序时出现以下错误:
加载 SolarisSerial 时出错:java.lang.UnsatisfiedLinkError:java.library.path 中没有 SolarisSerialParallel 捕获 java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I 在加载驱动程序 com.sun.comm.SolarisDriver 时
为什么尝试加载 Solaris 驱动程序?? 提前致谢
i'm trying to use the rxtx 2.0 jars and dll to use the java comm api in windows xp, i copied the RXTXcomm.jar to jre\ext and rxtxSerial.dll and rxtxParallel.dll to jre\bin
When I run the program I got the following error:
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
why is it trying to load the solaris driver??
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 Windows,我建议使用“Windows Java Serial Com Port Driver”而不是 rxtx。
您可以从 http://www.engidea.com/blog/informatica 下载它/winjcom/winjcom.html
我发现它更容易安装和使用,而且更无错误。
我无法将 RXTX 与 USB 串行设备一起使用,因为拔出 USB 端口时 RXTX 会崩溃。 winjcom 为我解决了这些问题,甚至更多。
-斯托什
For windows, I suggest using "Windows Java Serial Com Port Driver" rather than rxtx.
You can download it from http://www.engidea.com/blog/informatica/winjcom/winjcom.html
I've found it much easier to install and use and much more bug-free.
I was unable to use RXTX with USB serial devices because RXTX would crash when the USB port was unplugged. winjcom solved these problems for me, and more.
-Stosh
看来您的属性文件配置不正确。
找到 Javax.comm.properties 并搜索:
Driver=com.sun.commSolarisDriver
如果找到它,请将其注释掉并将其放置为:
Driver=gnu.io.RXTXCommDriver
这是 基于 RXTXComm 的 install-japanese.html 文件,由 Google 翻译
It looks like you may have an improperly configured properties file.
Locate Javax.comm.properties and search for this:
Driver=com.sun.commSolarisDriver
If you find it, comment it out and place it with:
Driver=gnu.io.RXTXCommDriver
This is based on RXTXComm's install-japanese.html file, as translated by Google