Arduino Nightly doesn't Launch on Raspbian OS on Rasberry pi 3

Hello,

i have just bought Rasberry pi 3 and trying to install Arduino IDE on it.

first i tried the sudo apt get command but i got the older version which seems to work fine but lacks some libraries.

then i tried to install it from arduino.cc and then in Hourly Build got a version named as "Arduino Nightly(Experimental)"

i installed it as specified in documentation and it i got a desktop icon but when i try to open it, a screen appears which goes off immediately and then i see the processing bar with mouse but after a minute i get nothing.
any help on it will be really appreciated.

Thanks in Advance
Awais

Please run it from the command line and then copy/paste the output here.

i ran it using command line and got this out put

Picked up JAVA_TOOL_OPTIONS:
Java HotSpot(TM) Client VM warning: You have loaded library /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
java.lang.UnsatisfiedLinkError: /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.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:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at processing.app.Platform.loadLib(Platform.java:162)
at processing.app.Platform.(Platform.java:157)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at processing.app.BaseNoGui.initPlatform(BaseNoGui.java:515)
at processing.app.Base.(Base.java:200)
at processing.app.Base.main(Base.java:145)
/home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
Cannot load native library /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so
The program has terminated!

mean while i have uninstalled arduino using "sudo apt-get purge arduino arduino-core" and then removed the folder too using "sudo apt-get purge arduino arduino-core ".

though i still saw Arduino IDE under Programming but it doesnt work anymore after i the above process.

then i downloaded and installed again the Linux ARM 64 bit Arduino Nightly version.

ran it from command line and get this output

pi@raspberrypi:~/Downloads/arduino-nightly $ ./arduino
Picked up JAVA_TOOL_OPTIONS:
java.lang.UnsatisfiedLinkError: /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at processing.app.Platform.loadLib(Platform.java:162)
at processing.app.Platform.(Platform.java:157)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at processing.app.BaseNoGui.initPlatform(BaseNoGui.java:515)
at processing.app.Base.(Base.java:200)
at processing.app.Base.main(Base.java:145)
/home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so: cannot open shared object file: No such file or directory
Cannot load native library /home/pi/Downloads/arduino-nightly/lib/liblistSerialsj.so
The program has terminated!

I have run into this same problem with the released version of 1.8.7 on a Raspberry Pi 3B+ running fully updated stretch.
1.8.6 and earlier all work fine and I found that if I replace lib/liblistSerialsj.so in 1.8.7 wth the file from 1.8.6 it loads and runs. I'm not sure if this is a reliable thing to do, but I think it points to a problem with
lib/liblistSerialsj.so in 1.8.7 for the ARM release

Dear jerryneedell,

simply wow Champs :slight_smile:
was struggling since night and yeah this technique has worked

Thank You

I confirm the issue and have reported it to Arduino:

I am having the same problem.

Found the previous version and it works.

The libListSerials problem with the Linux ARM version of Arduino IDE 1.8.7 is now reported to have been fixed. You can download the fixed 1.8.7-r1 version from the downloads page:

Nice! 1.8.7-r1 works for me! Thank you!

I'm glad to hear, and thanks to you for coming through with the workaround while we were waiting for Arduino to fix the issue.