我正在尝试使用命令行运行java桌面应用程序。在这个应用程序中我使用串口来发送和接收请求和响应。所以我使用的是RXTXserail.dll文件和RXTXcomm.jar文件。我我正在使用Windows 7操作系统下的net beans 7.1版本创建应用程序。 它是从净豆板形式运行,但当我尝试运行应用程序jar文件时,我得到这个错误
"C:\configurationtool\ModbusZigBee\dist>java -jar ModbusZigBee.jar
java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\rxtxSerial.dll: C
an't load IA 32-bit .dll on a AMD 64-bit platform thrown while loading gnu.io.RX
TXCommDriver
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Progra
m Files\Java\jre6\bin\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit
platformSubstance Raven Graphite failed to initialize
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)
at modbuszigbee.SerialInterface.<init>(SerialInterface.java:58)
at modbuszigbee.ModbusZigBeeView.<init>(ModbusZigBeeView.java:111)
at modbuszigbee.ModbusZigBeeApp.startup(ModbusZigBeeApp.java:22)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)"
我在我的系统中使用32位java 6。和rxtxserial.dll也32位。我尝试使用64位rxtxserial.dll。但它没有用。
请帮忙。谢谢。