Getting a lot warning while building image for SC20 using Yocto

Not able to build. Getting compilation error at the end.

I am getting this error on building SC20 image with Yocto:

The java version should be less then 1.7.

q@bw:~$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Moreover, the java/javac/jar/javadoc should be in /usr/bin

Run the following install commands to ensure the needed Java environment is installed:

sudo apt-get install default-jre
sudo apt-get install default-jdk