Scala环境搭建

1. Installation

offical doc
down zip

  • set env
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:progFilessbt

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:	mpFilesscala-projectscala-demo1srcmainscala
MyClass.scala to
E:	mpFilesscala-projectscala-demo1srcmainscalacomexample

delete

Main.scala

run

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

Reference

原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/14726491.html