sbt installation does not set up scala; cant run scala files

Viewed 1331

I followed instructions on this site because I didn't want to work with intellij.

With this installation, scala is not available as a command. How would I go about running .scala files?

1 Answers

Installing sbt doesn't get scala REPL for you. If you have sbt in your PATH variable, then you can use sbt console command to do and verify simple scala commands.

Otherwise you need to install scala separately.

The easy way to install scala and sbt is to use sdkman. Follow steps here.

  curl -s "https://get.sdkman.io" | bash
  source "$HOME/.sdkman/bin/sdkman-init.sh"
  sdk install sbt
 sdk install scala
Related