Jetson and Newer Arduino IDE help...

Hello,

My apologies in advance for what is probably a really simple question, but I could really use some help getting this to work. I was able to install the Arduino IDE doing:

sudo apt-get install arduino

Unfortunately, that is arduino version 1.0.5. I need the features provided in the newer IDEs. After downloading from https://www.arduino.cc/en/main/software the ARM64 package, and using install.sh, the IDE fails to launch. Launching from a terminal reveals this error:

./arduino: line 35: /opt/arduino-1.8.1/java/bin/java: No such file or directory

The file is there however… Some googling reveals that this is likely due to a mismatch with 32-bit vs 64-bit versions of Java. Most propose doing something like below, but that doesn’t work with Jetson.

sudo apt-get install libc6-i386

Is there a special version of Java or some Path modification that will be necessary?

Thanks for any help you can offer, it is much appreciated!

sgfuller31,
It seems that this is another thread following the same installation flow as that of yours but did not get the exact same error as your case.
http://askubuntu.com/questions/870385/cant-open-arduino-ide-version-1-8-1-on-ubuntu-16-04

Are you using Jetson TX1 running Jetpack 2.3.1 to install this software, correct?

Hi chijen,

Yes, this Jetson TX1 is running Jetpack 2.3.1. I’m still looking for a solution.

I just tested java and javac from Oracle’s aarch64 Java SDK available here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
(32-bit and 64-bit ARM hard-float builds available)

You’ll have to link in the java executable, which you’ll find at …/jdk1.8.0_121/bin.

Once you add java to your path, the Arduino IDE should find it. I’m not sure if Arduino searches in $PATH or the $JAVA_HOME env var, or both. Best of luck.

Barrett

Hi. I installed arduino 1.6.10 in TX1. I’m not able to open it. This solution might help me. Im new to Linux. Could you please tell me how do I link the JAVA executable. I mean what are the commands to do it?

Thanks for this post. I am experiencing the same issue, but I still don’t know how to fix it. I am using a Jetson TX2 and trying to install the Arduino IDE. After downloading the IDE on the TX2, the program doesn’t open. Can anyone walk me through the steps to make it work? Thanks!

Try http://blog.opensensors.io/blog/2014/09/13/getting-started-with-arduino-on-linux/ and let me know.

My Jetson TX2 error too.
I will try AUR (en) - arduide-git

I am able to install and run the IDE from the command line, but it’s an old version of the IDE. However, I want to use the new version, but I just couldn’t open it. After spending more than one hour, my computer science professor told me that the libraries in the Arduino IDE are only compatible with 32-bit machines. If anyone was able to run the new Arduino IDE, please let me know!

@Alex what arduino version do you run?(old version that compatible with jetson tx2.)

Arduino 1.0.5.

I just tested java and javac from Oracle’s aarch64 Java SDK available here:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

(32-bit and 64-bit ARM hard-float builds available)

You’ll have to link in the java executable, which you’ll find at …/jdk1.8.0_121/bin.

Once you add java to your path, the Arduino IDE should find it. I’m not sure if Arduino searches in $PATH or the $JAVA_HOME env var, or both. Best of luck.

@barrettw @Alick it work but you should remove old java such as java7 java8.

@barrettw
@Alick

I try just only work in arduino version 1.0.5 in command line.

Any final recommendation on updating Arduino 1.0.5 to Latest Arduino. I am using TX2 and trying to install Arduino 1.8.1 but I am getting error as
“./arduino: line 35: /opt/arduino-1.8.1/java/bin/java: No such file or directory”
I am not sure if any of above suggestions are working or not on TX2.

Any suggestions/help much appreciated!

This same symptom is happening when I run my own 32 bit version of java. I think your focus should lie on fixing java (You should be able to run the java command by itself without it saying the same error).
64 bit java ran fine, but then I ran into other problems with the ARM Arduino being 32 bit.

So the next goal for me is to fix java 32 bit running in the 64 bit world. If I’m running the java command by itself: jdk1.8.0_151/bin/java: No such file or directory