2
votes

I've just installed Scala 3 on a brand Ubuntu machine. I used Coursier to install Scala 3 using the official instructions.

I can compile a file using scala3-compiler, but how do I run it? Using the scala command will still default to the 2.13 version of Scala.

Place the directory of the Scala-3 executable into your PATH earlier than the directory of the Scala-2 executable.jwvh
Use scala3-replLuis Miguel Mejía Suárez
Thanks, but neither is these solves the problemJack
Please clarify. How was your PATH modified? Did you try to invoke the executable via a full path (i.e. no PATH)?jwvh