title: How to run an API made for 32-bit on a 64-bit machine?
body: <p>I'm writing a java application which has to communicate with has to communicate with an XBee radio over a usb-cable.To do this  , I use the xbee-java API (<a href="http://code.google.com/p/xbee-api/" rel="noreferrer">http://code.google.com/p/xbee-api/</a>)</p>
  
  <p>On my old 32-bit machine it all worked fine .
  But when I imported the project to a 64-bit machine  , it throws immediately an exception which says :" Can't load IA 32-bit .dll on a AMD 64-bit platform" .
  I don't have any idea how I can solve this problem . </p>
  
  <p>the error code :</p>
  
  <pre><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.&lt;clinit&gt;(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)
  </code></pre>
  
  <p>Thanks , Tom</p>