Skip to content

Instantly share code, notes, and snippets.

@alexislucena
Created December 5, 2016 12:35
Show Gist options
  • Save alexislucena/5947c925afc3a0f26b04c3785d482e9f to your computer and use it in GitHub Desktop.
Save alexislucena/5947c925afc3a0f26b04c3785d482e9f to your computer and use it in GitHub Desktop.
Ubuntu: Install Scala, SBT and Java on Ubuntu 16.04

Install Scala 2.11.8

$ sudo apt-get remove scala-library scala
$ sudo wget www.scala-lang.org/files/archive/scala-2.11.8.deb
$ sudo dpkg -i scala-2.11.8.deb

Check Scala version

$ scala -version

Install SBT

$ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
$ sudo apt-get update
$ sudo apt-get install sbt

Install Java if required
https://gist.github.com/alexislucena/0459b64e80c3e83236e52b0b871fd8ef

Sources
https://gist.github.com/bigsnarfdude/b2eb1cabfdaf7e62a8fc https://www.scala-sbt.org/download.html http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html

@GZ315200
Copy link

Hi man
i followed your step one by one, but got a exception is that Invalid or corrupt jarfile /usr/share/sbt/bin/sbt-launch.jar, Do have meet this problem too, please reply me as soon as possible, i need you help.
Regerds
Zean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment