Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

scala

sbt

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?

like image 331
CuriousDan Avatar asked Sep 13 '25 01:09

CuriousDan


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
like image 171
Rajkumar Natarajan Avatar answered Sep 15 '25 16:09

Rajkumar Natarajan