Java JDK

Next lets install Java on the Pi. We recommend using Oracle Java v8. This can be accomplished by using the following command

sudo apt-get install oracle-java8-jdk

Rasp Install Java

Type "y" to install the program and wait for apt-get to do it’s thing.

Once it’s finished, type java -version to test that it installed correctly. You should get a message like

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)