rakeshpatil1983 / xbee-api

Automatically exported from code.google.com/p/xbee-api
GNU General Public License v3.0
0 stars 0 forks source link

Can't run xbee-api on Windows 64-bit #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1: Try to run an Xbee based java project on Windows 64-bit, api 0.9 from this 
site...
2: Instead of running, it gives an error, and says the rxtx dll is 32-bit.

After trying a newer 64-bit rxtx-serial dll (the 64-bit dll found in the 
gps_0.2rc4.zip from 
http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/GPS%2CCTS%20Ex
tensions/gps_0.2rc4.zip/download), it starts to run, but says device is not 
connected.

WARNING: RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2-20081207 Cloudhopper Build rxtx.cloudhopper.net

Later it gives an exception, java.lang.IllegalStateException: XBee is not 
connected.

Is there a good way to fix an Eclipse project to work on both 64-bit and 
32-bit? I couldn't find any help on this in the documentation...

Original issue reported on code.google.com by luke...@msn.com on 4 Nov 2011 at 11:00

GoogleCodeExporter commented 9 years ago
This now put puts me behind on a project I am working on.

Original comment by mgerszty...@georgefox.edu on 7 Nov 2011 at 1:18

GoogleCodeExporter commented 9 years ago
This is a simple solution to this: run java in 32-bit mode by passing -d32 as 
an argument.  Now it will work with the provided rxtx library.

Original comment by andrew.rapp@gmail.com on 8 Nov 2011 at 3:06

GoogleCodeExporter commented 9 years ago
The -d32 option doesn't seem to work in Windows:
java -d32 -jar filename
Unrecognized option: -d32
Could not create the Java virtual machine.

Original comment by luke...@msn.com on 7 Feb 2012 at 12:46