The new Raspbian build comes with Java 1.8 pre-installed. You can check the current java version by issuing following command;
java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
In order to set environment...
Setting JAVA_HOME on Raspberry Pi
