-
Notifications
You must be signed in to change notification settings - Fork 1
Java
Jason Charney edited this page Jan 30, 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
- Start by going here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html
- Accept Oracle's Binary Code License Agreement.
- Download "Java SE Development Kit 8 Update 33 for ARM", the file I downloaded was called
jdk-8u33-linux-arm-vfp-hflt.tar.gzwhich I downloaded to the directory~/Software. sudo tar -xzvf jdk-8u33-linux-arm-vfp-hflt.tar.gz- 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 - 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.