To run Scala from the command-line, 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 writing a âHello, worldâ example.