scala

Scala application launcher and interactive interpreter. More information: <https://scala-lang.org>.

Install

All systems
curl cmd.cat/scala.sh
Debian Debian
apt-get install scala
Ubuntu
apt-get install scala
Arch Arch Linux
pacman -S scala
image/svg+xml Kali Linux
apt-get install scala
Fedora
dnf install scala
Windows (WSL2)
sudo apt-get update sudo apt-get install scala
OS X
brew install scala
Raspbian
apt-get install scala

Scala application launcher and interactive interpreter. More information: <https://scala-lang.org>.

  • Start a REPL (interactive shell):
    scala
  • Start the interpreter with a dependency in the classpath:
    scala -classpath filename.jar command
  • Execute a Scala script:
    scala script.scala
  • Execute a `.jar` program:
    scala filename.jar
  • Execute a single Scala command in the command-line:
    scala -e command

© tl;dr; authors and contributors