Friday, February 6, 2015

Raspberry Pi: Java 1.8


Check existing version

pi@raspberrypi ~ $ java -version
java version "1.7.0_40"





DOWNLOAD:
Linux ARM v6/v7 Hard Float ABI 76.67 MB
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html

COPY OVER TO PI

$ scp ~/Downloads/jdk-8u33-linux-arm-vfp-hflt.gz pi@192.168.1.xxx:

LOG IN TO PI

$ ssh pi@192.168.1.xxx

CHECK THE TRANSFER

pi@raspberrypi ~ $ ls -alt
total 178460
-rw-r----- 1 pi pi 80392759 Feb 6 06:44 jdk-8u33-linux-arm-vfp-hflt.gz




UNPACKAGE

pi@raspberrypi ~ $ sudo tar zxvf jdk-8u33-linux-arm-vfp-hflt.gz -C /opt
jdk1.8.0_33/COPYRIGHT
jdk1.8.0_33/LICENSE
jdk1.8.0_33/README.html
jdk1.8.0_33/THIRDPARTYLICENSEREADME.txt


jdk1.8.0_33/bin/
....






CHECK VERSION

pi@raspberrypi ~ $ /opt/jdk1.8.0_33/bin/java -version
java version "1.8.0_33"
Java(TM) SE Runtime Environment (build 1.8.0_33-b05)
Java HotSpot(TM) Client VM (build 25.33-b05, mixed mode)