Java8-runtime-headless dependency for Scala-2.12.2 with .deb and rpm

I am trying to install Scala-2.12.2 on Ubuntu16.04 and Ubuntu16.10 on Linux using the .deb . While installing the .deb, I am getting the error that " scala depends on java8-runtime-headless; however: Package java8-runtime-headless is not installed."

This dependency is not required when I try to intsall Scala-2.12.2 on Red Hat Enterprise Linux (RHEL) using the scala rpm.Any idea why there is a dependency difference in the .deb and rpm format.

I am using IBM java version “1.8.0” Java™ SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.