If you come across this error while running arduino 0021 32bit on ubuntu 10.10:
java.lang.UnsatisfiedLinkError: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)
at processing.app.Editor.populateSerialMenu(Unknown Source)
at processing.app.Editor.buildToolsMenu(Unknown Source)
at processing.app.Editor.buildMenuBar(Unknown Source)
at processing.app.Editor.<init>(Unknown Source)
at processing.app.Base.handleOpen(Unknown Source)
at processing.app.Base.handleOpen(Unknown Source)
at processing.app.Base.handleNew(Unknown Source)
at processing.app.Base.<init>(Unknown Source)
at processing.app.Base.main(Unknown Source)
It seems the 32bit package include the 64bit driver librxtxSerial.so
I did a "locate librxtxSerial.so" and found one in /usr/lib/jni/.
If you do not have that file do:
sudo apt-get install librxtx-java
After this link the lib where ever its installed to your arduino lib folder
sudo ln -sf /usr/lib/jni/librxtxSerial.so /home/USER/arduino/lib/librxtxSerial.so.
(You have to rename the existing one in the destination folder before)
I was then able to launch and run arduino ide successfully and upload data to the board.