下载地址
https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html
https://scala-lang.org/download/2.11.1.html
解压
tar -zxvf jdk-8u162-linux-x64.tar.gz -C ~/opt/
tar -zxvf scala-2.11.0.tgz -C ~/opt/
mv jdk1.8.0_162 jdk-1.8
mv scala-2.11.0 scala-2.11
配置文件
vim ~/.bashrc
# java 环境
JAVA_HOME=/home/szitu/opt/jdk-1.8
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
# scala 环境
SCALA_HOME=/home/szitu/opt/scala-2.11
export PATH=$SCALA_HOME/bin:$PATH
网友评论