First verify java JDK: openjdk-7-jdk as in Ubuntu workstation setup.
- Download latest tarball from scala-sbt page. CAUTION: do not try deb-file.
- Uppack somewhere and add ...
sbt/bin
to~/.bashrc
- Verify: in new terminal
sbt -h
NOTE: sbt provides interactive console with scala interpreter (REPL "read-eval-print loop") without installing the full scala distribution (that would provide scala
command instead).
cd
project directory,sbt
to start sbt-shell (exit
to quit)console
to start interactive interpreter (ctrl d
to switch back)
NOTE: interpreter console will start only if the code compiles without errors.
Intractive console from a new (empty) dir: cd there and sbt console
. After some setup/downloads interactive Scala console will be available.
compile
styleCheck
test
(if unit tests are included)run
(if some object providesmain
method or extendsApp
trait)
Scala IDE, Scala Worksheet etc. bundle from scala-ide page: choose Linux 64-bit download. Unpack, create shortcut for Eclipse.
Once Eclipse starts, scala worksheet option should be available for interactive work.
Expect huge memory use. Some tweaks for ScalaIDE are to be implemented in Eclipse.