Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 1003 Bytes
title layout includeTOC
Running Scala Binaries
inner-page-no-masthead
true

To run Scala from the command-line, simply [download]({{ site.baseurl }}/download) the binaries and unpack the archive.

Start the Scala interpreter (aka the "REPL") by launching scala from where it was unarchived. Start the Scala compiler by launching scalac from where it was unarchived.

Path and Environment

For quick access, add scala and scalac to your path. For example:

Environment Variable Value (example)
Unix $SCALA_HOME /usr/local/share/scala
$PATH $PATH:$SCALA_HOME/bin
Windows %SCALA_HOME% c:\Progra~1\Scala
%PATH% %PATH%;%SCALA_HOME%\bin

Get Started with Scala

Check out [our guide to taking your first steps in Scala]({{ site.baseurl }}/documentation/your-first-lines-of-scala.html).