Win7 below how to build scala--eclipse development environment

Source: Internet
Author: User

Now, here are the steps to build your development environment:

Because Scala is a language on the JVM, we first install the Java Runtime environment. Download and install JDK8 from Oracle official website. Note that Scala only needs to run the Java environment, that is, to install only: JRE, but in order to facilitate future Java development, we still install the Java development environment. After the installation is complete, set the environment variables, as an example:

12 JAVA_HOME = E:\Java\jdk1.8.0_20PATH = %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;$PATH

Path in%java_home%\jre\bin, this is the path of the runtime environment that Scala wants to use. After setting the environment variable, we need to test if Java is installed successfully, and execute the following command at the command line: Javac, Java, Javadoc, Jar, java-version, to see if there is a correct result output.

1, download the Scala installation package, I choose 2.11.7 version,: Http://www.scala-lang.org/download

As shown in the following:

The installation version, directory E, Scala, and environment variables are set as follows:

12 SCALA_HOME = E:\scala\binPATH = %SCALA_HOME%\bin;$PATH

Here, Scala, even if the installation is complete, the command line to the Scala, get the interface as follows:

2. Download Ide:scala for Eclipse, http://scala-ide.org/download/sdk.html note the match with the Scala version above, then unzip, open, and click the program

3. The first Scala program

Start the Scala for Eclipse Eclipse, select its workspace directory, and then click File-->> New-->>scala Project. Create a new package:test. Under the test package, create a new Scala Object. For example, right-click the run as-->> Scala application.

Console output: Hello world!

Successful configuration Environment hehe

Win7 below how to build scala--eclipse development environment

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.