Ubuntu Scala
vim /etc/profile
#JAVA Environment
JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45
#scala
export SCALA_HOME=/usr/lib/jvm/scala-2.11.4
export PATH=$SCALA_HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
source /etc/profile
scala