Monday, December 2, 2013

Install JDK8 Early Access Releases on Raspberry Pi

This post show how to download and install JDK8 Early Access Releases on Raspberry Pi.

The page https://jdk8.java.net/download.html provide download link of JDK 8 Early Access Releases for various platforms, include JDK of Linux ARMv6/7 VFP, HardFP ABI which can be run on Raspberry Pi. You have to check to accept Accept License Agreement to view the ownload link, currently http://www.java.net/download/jdk8/archive/b117/binaries/jdk-8-ea-b117-linux-arm-vfp-hflt-20_nov_2013.tar.gz.

JDK8 Early Access Releases
JDK8 Early Access Releases
In my approach, log-in Raspberry Pi via ssh, and download using wget. In order to ignore server's certificate in wget, option of --no-check-certificate have to be added.
$ wget --no-check-certificate http://www.java.net/download/jdk8/archive/b117/binaries/jdk-8-ea-b117-linux-arm-vfp-hflt-20_nov_2013.tar.gz

After downloa, run the command:
sudo tar zxvf jdk-8-ea-b117-linux-arm-vfp-hflt-20_nov_2013.tar.gz -C /opt

The JDK will be installed in /opt/jdk1.8.0/bin/


Next:
Set JDK8 as default java and javac with alternatives

No comments: