Skip to content

Instantly share code, notes, and snippets.

@strangnet
Created August 24, 2013 13:32
Show Gist options
  • Save strangnet/6328161 to your computer and use it in GitHub Desktop.
Save strangnet/6328161 to your computer and use it in GitHub Desktop.
Scala 2.10.2 and java 7 in ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
http://www.scala-lang.org/files/archive/scala-2.10.2.tgz
tar zxf scala-2.10.2.tgz
sudo mv scala-2.10.2 /usr/share/scala
sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc
sudo ln -s /usr/share/scala/bin/sbaz /usr/bin/sbaz
sudo ln -s /usr/share/scala/bin/sbaz-setup /usr/bin/sbaz-setup
sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc
sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap
// Get sbt to ~/bin
wget http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch//0.12.4/sbt-launch.jar
// create executable sbt with following content
java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar `dirname $0`/sbt-launch.jar "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment