Scala detailed environment installation and configuration

Source: Internet
Author: User

the system is windows. The installation configuration Scala is as follows:

One, install Scala

1,java6 above (recommended Java 7 +) installation

Address: http://www.oracle.com/technetwork/java/javase/downloads/index.html


Configuring environment variables after installation

2,scala 2.12.2

Address: http://www.scala-lang.org/download/


3. Download the post-installation configuration environment variable

After downloading, double-click the MSI file, step by step installation, the installation process, you can use the default installation directory.

After you install Scala, the system automatically prompts you to click Finish to complete the installation.

Right click on My Computer and click on "Properties" to enter the page as shown in the illustration. To start configuring environment variables, right-click on "My Computer"--"properties"--"Advanced system Settings"-"Environment variables", as shown in figure:

Set the Scala_home variable: Click New, enter in the Variable Name field: Scala_home: Variable Value column input: D:\Program Files\scala is the installation directory of SCALA, depending on the individual situation, if installed on the C drive, change "D" to "C" Can.

Set the PATH variable: Locate the "path" under System variables as shown in figure, click Edit. Add the following path at the front of the "Variable Value" column:%scala_home%\bin;%scala_home%\jre\bin;

Note: The following semicolon; don't miss out.

Set the Classpath variable: Locate the "Classpath" under System variables, click Edit, if not, click New:

· "Variable name": ClassPath

· "Variable Value":

· .; %scala_home%\bin;%scala_home%\lib\dt.jar;%scala_home%\lib\tools.jar.;

Note: The "variable Value" is the first.; Don't miss out. Finally, click OK.

4,scala Verification Success

Check that the environment variable is set: Bring up the "cmd" check. Click Start, enter CMD in the input box, then "enter", type Scala, and enter, such as environment variable settings OK, you should be able to see this information.

two, installing SBT

1,SBT Download Address

Http://www.scala-sbt.org/download.html


2, installation

Unzip the installation after downloading. Always next.

3, run Sbt.bat

4, configuring environment variables

5,SBT Verification Success

third, call Repl

1,repl

Repl is an interactive Scala tool

2,scala Call Repl

3,SBT Call Repl

Two, Scala IDE

Using SBT or Scala to invoke Aepl is a quick and easy way to write Scala programs, but for large projects, use the IDE to better organize.

1, main IDE

The Scala IDE (based on Eclipse)

Intellij idea with Scala plugin

Netbeans IDE with the Scala plugin

2,scalaide (Eclipse)

Download Address: http://scala-ide.org/


3, installation

Click Next, and you can place eclise shortcuts on your desktop.

4, using Eclipse


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.