This post demonstrates how to install Scala in Ubuntu 14.04 LTS.
JDK is required
[wp_ad_camp_5]
Before you can compile and run a Scala program, you need to have a JDK installed in your system. For instance, I am using OpenJDK 1.7.0_95 in Ubuntu.
Download Scala
Next, download Scala from http://www.scala-lang.org/download
[wp_ad_camp_4]
Extract compressed file
As of this writing, the latest release is 2.11.7 and can be downloaded as scala-2.11.7.tgz
. The archived file contains the following directories.
The goodies are in the bin directory.
Take note of calac
and scala
. These are tools for compiling and running Scala applications, respectively.
Compiling a Scala program
[wp_ad_camp_3]
Running a Scala program