Building the Scala development environment under Windows

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.