I just downloaded and installed Scala 3 from Coursier as the Scala main page suggested.
The problem is, each time I type the scala
command on the terminal, an error show up saying the following:
Error: Could not find or load main class y
Caused by: java.lang.ClassNotFoundException: y
I also tried to reinstall Java JDK 17 but it didn't work at all.
The command scalac
does not work either.
What am I doing wrong? I recently carried out the same process on another computer and it worked just fine.
I look forward to any suggestions or answers you can give me, thank you very much!