1. 下载,解压Scala sdk,
2. 配置环境变量(.bash_profile)
SCALA_HOME="/Users/soft/scala_soft/scala-2.11.6"
export PATH=$PATH:$SCALA_HOME/bin
3. 运行Scala
cat: /release: No such file or directory
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM,Java1.8.0_45).
Type in expressions for evaluation. Or try :help.
解决 /release: No such file or directory [解决方案:配置java_home环境变量]
添加java_home到.bash_profile文件中
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH
export CLASS_PATH=$JAVA_HOME/lib
网友评论