Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

scala

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.

like image 834
Anuja Jakhade Avatar asked Feb 02 '26 00:02

Anuja Jakhade


1 Answers

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 !

like image 132
Hilton Fernandes Avatar answered Feb 04 '26 01:02

Hilton Fernandes