March 28, 2014 AT 7:00 am

How to install Oracle JDK 8 on Raspberry Pi #piday #raspberrypi @Raspberry_Pi


Raspberry Pi Blog has a useful new tutorial on installing Oracle JDK on your Raspberry Pi.

This post will show how to download and set up Oracle JDK 8 on Raspberry Pi.

Visit, click the download button of Java Platform (JDK) 8. Click to Accept License Agreement, download jdk-8-linux-arm-vfp-hflt.tar.gz for Linux ARM v6/v7 Hard Float ABI.

Log-in Raspberry Pi, enter the command to extract jdk-8-linux-arm-vfp-hflt.tar.gz to /opt directory.
$ sudo tar zxvf jdk-8-linux-arm-vfp-hflt.tar.gz -C /opt

Set default java and javac to the new installed jdk8.
$ sudo update-alternatives –install /usr/bin/javac javac /opt/jdk1.8.0/bin/javac 1
$ sudo update-alternatives –install /usr/bin/java java /opt/jdk1.8.0/bin/java 1

$ sudo update-alternatives –config javac
$ sudo update-alternatives –config java

After all, verify with the commands with -verion option.
$ java -version
$ javac -version

Read more.

Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!

No Comments

No comments yet.

Sorry, the comment form is closed at this time.