Accepted answer

OK I got it I have to write "scala" keyword outside of the scala terminal while trying to compile.

So instead of what I was doing which was typing "scala" to bring up the scala interpreter and then again writing scala MYSCRIPT.scala I have to skip the first step which was opening the scala interpreter.

Post can be removed.

Related Query

More Query from same tag