Why do I always get this screen and then bash command not found errors with Scala?

Trying to start a new Scala project for class. Anytime I create a new repl I get this screen, and the only ever bash command not found errors
Repl link/Link to where the bug appears:
Screenshots, links, or other helpful context:

code snippet

Try opening main.scala instead of Main$.class, as it seems the .class file is the complied version of the code.