I am writing a java application to communicate with, it must communicate with XBee radio on top of usb-cable. For this, I use the xbee-java API ( http://code.google.com/p/xbee-api/ )
On my old 32-bit machine, everything worked fine. But when I imported the project to a 64-bit machine, it immediately throws an exception that says: "Unable to load IA 32-bit.dll IA on a 64-bit AMD platform." I do not know how I can solve this problem.
error code:
java.lang.UnsatisfiedLinkError: C:\Users\Tom\Documents\XbeeJava\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform thrown while loading gnu.io.RXTXCommDriver Closing connection with local XBee Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: C:\Users\Tom\Documents\XbeeJava\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform 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:83) at com.rapplogic.xbee.RxTxSerialComm.openSerialPort(RxTxSerialComm.java:71) at com.rapplogic.xbee.RxTxSerialComm.openSerialPort(RxTxSerialComm.java:61) at com.rapplogic.xbee.api.XBee.open(XBee.java:140) at me.server.HardwareCommunications.SensorListener.run(SensorListener.java:47) at java.lang.Thread.run(Unknown Source)
Thanks Tom
source share