其他分享
首页 > 其他分享> > Scala环境搭建

Scala环境搭建

作者:互联网

1. Installation

offical doc
down zip

Under Windows, you may set environment variables through the "Environment Variables" button on the
"Advanced" tab of the "System" control panel. Some versions of Windows provide this control panel through the
"Advanced System Settings" option inside the "System" control panel.
  1. name: SCALA_HOME
  2. value: E:\progFiles\sbt

2. Create the project

pull helloworld template

sbt new scala/hello-world.g8

rename project name

scala-demo1

file oper

see 我的第一个Scala程序

copy

MyExec.scala to
E:\tmpFiles\scala-project\scala-demo1\src\main\scala
MyClass.scala to
E:\tmpFiles\scala-project\scala-demo1\src\main\scala\com\example

delete

Main.scala

run

cd scala-demo1
sbt
sbt:hello-world>~run

Reference

标签:control,sbt,scala,Scala,环境,System,project,demo1,搭建
来源: https://www.cnblogs.com/xiaobin-hlj80/p/14726491.html