Java
#export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_151
export JAVA_HOME=/usr/local/java/jdk1.8.0_151
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JAVA_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
Scala
#export SCALA_HOME=/home/albertu/Downloads/scala-2.12.4
export SCALA_HOME=/usr/local/scala/scala-2.12.4
export PATH=$SCALA_HOME/bin:$PATH