First, the Scala environment fundamentals

Scala wraps java-related classes and interfaces, so it depends on the Jvm environment.

Jdk 1.8 Scala relies on the Scala 2.11 installation version idea 2017.3 development toolCopy the code

2. Configure the Scala extract

1) Note that the path does not contain Spaces or Chinese characters

2) Configure environment variables

Add to path directory

%SCALA_HOME%\bin
Copy the code

3) Check whether it is installed

Configuration successful. Yes, it’s that simple.

3. Configure Idea development

1) Plug-in installation, is dot dot

2) Create two new Maven projects and create scala folders under the Main directory of Scala-base-Hello, marked as follows.

3) Add the Scala framework

4) Create scala code files

5) Witness hello-Scala

Doesn’t this code look a little different?

4. Write at the end

They say all things are difficult at the beginning, now we have a perfect start, the rest must be easy!