1. Configure JDK: see here
2. Download Scala and install
3. Configure the Scala environment variable to include Scala's installation path in path
PS: Verify that the installation is correct: cmd-"input Scala, if a Scala environment is present, the configuration is successful
4. Download IntelliJ idea, and install
5. Open the IDE:
Click Configure->plugins:
Point of Browse repositories to:
Enter Scala display For example, there is an installation option on the right (because I have installed it, so the Install button is not displayed)
Enter SBT, then click Install
Reboot is prompted after installation
6. After restarting, click NewProject:
Click NON-SBT, then Next:
Enter the project name: Helloscala, then finish.
Click the project name Helloscala, expand the SRC folder, and right-click the new class:
Click Scala Class and enter the file name: Helloscala
PS: In kind, there are class,object,trait three options, select Object
Enter the following code:
Object Helloscala {def main (args:array[string]) {println ("Hello, world!")}}
Then run, the result:
At this point, the environment and Hello,world demonstration is complete!
Start enjoying scala!!!
Building the Scala development environment under Windows