install jdk8 on Raspberry Pi and Archlinux
- http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- download button of Java Platform (JDK) 8
- jdk-8-linux-arm-vfp-hflt.tar.gz for Linux ARM v6/v7 Hard Float ABI.
tar zxvf jdk-8-linux-arm-vfp-hflt.tar.gz -C /opt
Set default java and javac to the new installed jdk8:
pacman -S java-environment-common java-runtime-common
ln -sf /opt/jdk1.8.0_06 /usr/lib/jvm/default
ln -sf /opt/jdk1.8.0_06/jre /usr/lib/jvm/default-runtime
java -version
javac -version