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 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, 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
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!
Maker Business — From prototype to production of a 3D printer
Wearables — When it comes to wiring your neopixels, direction matters!
Electronics — It sure is crowded in here.
No comments yet.
Sorry, the comment form is closed at this time.