I am still having trouble reading serial output from the Arduino. I am able to do it via the linux terminal but it crashes the Arduino IDE when I open the monitor. I also get the same error when I try and use the RxTx library to read serial with java through Eclipse.
If I run the Arduino IDE as root it results in the same crash as well.
The Arduino monitor actually worked when I first installed it up until I ran this command:
In the original post, it looks like you had a version mismatch between the RXTX jar and the native library. Have you tried it with both pieces at 2.2pre2 (or whatever the latest version for your distribution is)?
@mrtaylor - I am running Linux 2.6.32-24-generic x86_64
@mellis - I tried updating to the latest version multiple times but can't seem to update my native lib version. Does this just mean there is a RxTx jar on my system I need to replace with the latest version? I thought I had moved all the RxTx files to the necessary locations, but I guess not?
The native lib is probably called something like libRXRX.so or librxtxSerial.so or similar. I'm not sure where it is, but having a mismatch between the Java and native version of the library could definitely cause problems or crashes.
edit added: I believe my is the same. mine works great.
./arduino
Stable Library
Native lib Version = RXTX-2.2pre2
Java lib Version = RXTX-2.1-7
WARNING: RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2pre2