I am doing something very simple in Scala
. I wrote a short program and have it saved in file ScalaTutorial.scala
which is in my downloads directory.
Using the Mac High Sierra
terminal, I cam trying to compile my program. at the prompt, I have:
scalac /Macintosh\ HD/Users/myName/Downloads/ScalaTutorial.scala
However, I get an error:
error: source file '/Macintosh HD/Users/myName/Downloads/ScalaTutorial.scala' could not be found.
While I am obviously referring to the file location incorrectly, it is not clear to me how I should refer to the file location. I have tried with and without the leading '/', I have tried enclosing the location in quotes, and I have not seen an example surfing the web