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_20 PATH = %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\bin PATH = %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