Skip to content
Jason Charney edited this page Mar 14, 2015 · 3 revisions

Java is an object-oriented programming language created by James Gosling and maintained by the Oracle corporation.

Java has a version of Java 8 for ARM architecture. Built for Raspberry Pi, this version of Java also works for Odroid!

We want to use that version instead of the "IcedTea" stuff that came with your Odroid's Debian Wheezy

  1. Start by going here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html
  2. Accept Oracle's Binary Code License Agreement.
  3. Download "Java SE Development Kit 8 Update 33 for ARM", the file I downloaded was called jdk-8u33-linux-arm-vfp-hflt.tar.gz which I downloaded to the directory ~/Software.
  4. tar -xzvf jdk-8u33-linux-arm-vfp-hflt.tar.gz. By extracting it in the ~/Software directory, we don't need to change the permission for us to use.
  5. sudo mv jdk1.8.0_33/ /opt/. Move it to the /opt/ directory.
  6. Set default java and javac to the new installed jdk8.
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_33/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_33/bin/java 1
sudo update-alternatives --config javac
sudo update-alternatives --config java
  1. Finally, we verify with the commands with -verion option.
javac -version
java -version

Java should be set up.

TODO: Create a java file to test.

TODO: Show instructions for compiling and executing.

See Also

External Links

Clone this wiki locally