I have java 8 server runtime on Debian.
Tried: dpkg -i scala-2.11.7.deb
scala depends on java6-runtime-headless; however: Package java6-runtime-headless is not installed.
But is ok: scala -version Scala code runner version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL
Now installing SBT from bintray repo:
My Java 8 is deactivated, installs open openjdk-7-* ...
Have to "apt-get purge openjdk-7-*" (wrong way)
EDIT: Problem corrected with: update-alternatives --config java
Here is the list of commands that I used to install in a clean Debian Jessie instance created using Vagrant:
Install Java 8
Edit the file
/etc/apt/sources.list.d/webupd8team-java-jessie.list
to replacejessie
withtrusty
so that it will have the following line:And then execute:
Confirming that Java 8 is properly installed:
Which outputs:
Installing Scala 2.11.7:
This works fine to me and, just to confirm that I'm using the most recent version, I've executed:
And then:
Which outputs:
Install SBT:
Everything works as expected and then I've executed the following commands to ensure that I'm using the most recent version of SBT:
At this point, Java 8, Scala and SBT were successfully installed on my machine.