WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Scala - Installtion Setup


Scala can be installed on any UNIX flavored or Windows based system.

you must have Java 1.8 or greater installed on your computer.

Step 1: Verify Your Java Installation

you need to have Java Software Development Kit (SDK) installed on your system
Platform Open Command Console and type Sample Output
Windows \>java –version

Java version "1.8.0_31"

Java (TM) SE Run Time

Environment (build 1.8.0_31-b31)

Java Hotspot (TM) 64-bit Server

VM (build 25.31-b07, mixed mode)

Linux $java –version

Java version "1.8.0_31"

Open JDK Runtime Environment (rhel-2.8.10.4.el6_4-x86_64)

Open JDK 64-Bit Server VM (build 25.31-b07, mixed mode)

Step 2: Set Your Java Environment

Set the environment variable JAVA_HOME to point to the base directory location
Sr.No Platform & Description
1

Windows

Set JAVA_HOME to C:\ProgramFiles\java\jdk1.7.0_60

2

Linux

Export JAVA_HOME=/usr/local/java-current

Step 3: Install Scala

At the time of writing this tutorial, I downloaded ‘scala-2.11.5-installer.jar’.

Platform Command & Output Description Windows

\>java –jar scala-2.11.5-installer.jar\>

This command will display an installation wizard, which will guide you to install Scala on your windows machine. During installation, it will ask for license agreement, simply accept it and further it will ask a path where Scala will be installed. I selected default given path “C:\Program Files\Scala”, you can select a suitable path as per your convenience.

Linux

Command

$java –jar scala-2.9.0.1-installer.jar

Output

Welcome to the installation of Scala 2.9.0.1!

The homepage is at − http://Scala-lang.org/

press 1 to continue, 2 to quit, 3 to redisplay

1................................................

[ Starting to unpack ]

[ Processing package: Software Package Installation (1/1) ]

[ Unpacking finished ]

[ Console installation done ]

During installation, it will ask for license agreement, to accept it type 1 and it will ask a path where Scala will be installed. I entered /usr/local/share, you can select a suitable path as per your convenience.

Platform Command Output
Windows

\>scala -version

Scala code runner version 2.11.5 -- Copyright 2002-2013, LAMP/EPFL

Linux

$scala -version

Scala code runner version 2.9.0.1 – Copyright 2002-2013, LAMP/EPFL