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(TM) SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.
The solution is to download open-jdk-8 as the error messages asks for. In Ubuntu 16.04, it is already available in the Universe repository. Make sure that you have it in your /etc/apt/source.list file.
Then, issue the usual commands
apt-get update apt-get install openjdk-8-jdk
These lines will install the full open-jdk-8, not just its headless version, used for applications that in which the display device, keyboard, or mouse is lacking.
Good luck !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With