Problem starting arduino IDE 0012 amd64

I'm running a debian sid amd64 distrib. When I launch arduino IDE 0012 for amd64, I get:

(<unknown>:3386): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libqtengine.so: wrong ELF class: ELFCLASS64

(<unknown>:3386): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libqtengine.so: wrong ELF class: ELFCLASS64
java.lang.UnsatisfiedLinkError: /tmp/arduino-0012-amd64/lib/librxtxSerial.so: /tmp/arduino-0012-amd64/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: /tmp/arduino-0012-amd64/lib/librxtxSerial.so: /tmp/arduino-0012-amd64/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:1778)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
        at processing.app.Editor.populateSerialMenu(Editor.java:903)
        at processing.app.Editor.buildToolsMenu(Editor.java:800)
        at processing.app.Editor.<init>(Editor.java:190)
        at processing.app.Base.<init>(Base.java:149)
        at processing.app.Base.main(Base.java:104)

The i386 arch. works. Any idea?

Are you using an i386 or x86_64 java, libs, and tools?

You may need to manually replace lib/librxtxSerial.so

:slight_smile:

Here are all my java-related packages:

ca-certificates-java
ia32-sun-java6-bin
java-common
libaccess-bridge-java
libhsqldb-java
libjaxp1.3-java
libjaxp1.3-java-gcj
libjline-java
libservlet2.4-java
libxalan2-java
libxalan2-java-gcj
libxerces2-java
libxerces2-java-gcj
openoffice.org-java-common
sun-java6-bin
sun-java6-jre

I think I'm using a java 64 bits, but I can't be sure (I'm not a java developper, and I've never understand all java stuff :-/).

From where can I get the correct librxtxSerial.so lib?

Ok, in fact, I was not using java 64 bits. I changed that using debian alternatives mecanism, and arduino now starts.

Thanks :slight_smile:

Cool :slight_smile:

Have fun with arduino :slight_smile:

Hi, i'm new in Arduino and relative new in Linux.

I'm trying to run arduino IDE 0016 in a debian "testing" amd64 distrib, and i have the same problem that fma.
Can you help me? What do you do in alternatives mecanism? What's that? and, how do i do it?

Hi gnu_linux, how i know my java-related packages? I guess with:

 # aptitude search java | grep ^i

Am i right? I follow this instruction:
arduino.cc/playground/Linux/Debian

Sorry my poor english. Regards

it's solve
erase librxtxSerial.so RXTXcomm.jar in ../arduino-0016/lib/

then

# ln -s /usr/share/java/RXTXcomm.jar /opt/arduino-0016/lib/
# ln -s /usr/lib/librxtxSerial.so /opt/arduino-0016/lib/
# chown -R user: /opt/arduino-0016/lib/

where user most be your user name in system.