I. Overview
Scala is more than one paradigm (multi-paradigm) programming language, designed to integrate various characteristics of object-oriented programming and functional programming.
Scala runs on the Java Virtual Machine, and is compatible with existing Java programs.
Scala source code is compiled into Java byte code, it can run on top of the JVM, and can call the existing Java class libraries.
Two, WIndows environment to build
1, download the installation package
(1)jdk-8u231-windows-x64.exe(https://www.oracle.com/java/technologies/javase-jdk8-downloads.html)
(2) scale-2.13.1.msi ( https://www.scala-lang.org/download/ )
2, the installation JDK & Scala
Click jdk-8u231-windows-x64.exe and scala-2.13.1.msi run, follow the operating window, click on the Eau fool of. (If you want to change the installation path, remember not to appear Chinese path)
3, configure the environment variables
Find this computer = "select properties =" Advanced System Settings = "environment variable, will see the following panel
(Tips: user variables are specified users, in the above, is assigned to the current user; the system variables configuration, all users can use, I do not limit the user to configure a system variable.)
(1) JDK Configuration
Click New, enter the variable name: JAVA_HOME, variable value input: C: \ Program Files \ Java \ jdk1.8.0_231 (here's your jdk installation directory, I installed directly on the C drive) to find PATH, editing editors, pop-under map interface
Behind the PATH appends a% JAVA_HOME% \ bin, save. Because the new default is the last time, we can move it on top.
Then check the cmd command-line version: java -version, javac -version
If you have two versions, the configuration was successful.
(2) Scala Configuration
JDK arranged through the same, create a new variable, the variable name SCALA_HOME, the variable value is the installation path Scala, I is C: \ Program Files (x86) \ scala, append a% SCALA_HOME% \ bin in the Path.
In the bin looking to play scala.bat, Administrator, open and enter the test code, as shown below:
This environment will be installed successfully. The next pass will write about the installation of Scala development environment on Linux.
===== badly written, for reference =====