I was using the arduino ide that I got with apt-get and it was working but i wanted the new version so uninstalled it
and installed version 1.8.10 from the tar file.
The instructions I was following told me to move the extracted directory to /opt. So I did that and then did
sudo ./install.sh from /opt. It appeared to install OK but now it won't open from the icon.
I get the following error when I try to open the ide with sudo arduino
pi@raspberrypi:~ $ sudo arduino
/usr/local/bin/arduino: line 35: /opt/arduino-1.8.10/java/bin/java: cannot execute binary file: Exec format error
Is the problem something about JAVA versions? I also saw you can get that error when trying to run 64 bit software
on a 32 bit machine but I don't think it's that. This is a raspberry Pi so i installed the 32 bit version of 1.8.10.
pi@raspberrypi:~ $ arch
I don't know where to go from here