Tag Archives: Toolchain

Set up Scala Environment

In order to develop in the functional programming language Scala, you need to set up the toolchain, including the JRE, the scala build tool and an IDE.

In this short tutorial, I will show how to reach this goal.

Install JDK

As a first step, the Java Development Toolkit (JDK) is required on the machine, as Scala is compiled as Java Bytecode. For this, simply download the latest JavaSE distribution for your operating system from the Java download page and install it on your machine (make sure, it really is the “JDK” distribution, not only the “JRE” which does not contain the compiler, but only the runtime).

After the installation, also make sure the environment variable “JAVA_HOME” is set and point to the installation directory of the JDK.

In linux, you can set the environment variable e.g. in the file “.bash_profile” in your home directory by adding:

Under Windows, open your “system settings”, then the “extended system properties”, and then the “environment variables”. Enter a new environment variable named “JAVA_HOME” with the value of the installed JDK, e.g. “C:\Program Files\Java\jdk1.8.0_45”.

Continue reading