Scala installation link
Download and install JDK 8 from here in your machine.
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java`
Install Homebrew and then run the following command
$ brew install scala@2.11
$ brew install sbt
$ sbt clean compile
Alternatively if you are using IntelliJ IDEA, install Scala Jetbrains plugin by going to IntelliJ IDEA > Preferences > Plugins
.
Goto File > Project Structure > Global Libraries
and add a new global library for scala-sdk-2.11.12
.