0

The man page for the command (http://www.scala-lang.org/docu/files/tools/scalac.html) does not explain how to do this.

The obvious workaround it to simply change the file name to avoid spaces, but this is not a solution.

I am using windows and running scalac from command prompt.

I have tried:

  • scalac the source file name.scala => error: source file 'the' could not be found
  • scalac "the source file name.scala" => source was unexpected at this time.
  • scalac 'the source filename.scala' => error: source file ''the' could not be found
  • scalac `the source file name.scala` => error: source file '`the' could not be found
  • scalac -sourcepath the source filename.scala => error: source file 'source' could not be found
  • scalac -sourcepath "the source filename.scala" => Usage: scalac
  • scalac -sourcepath 'the source filename.scala' => error: source file 'source' could not be found.
  • scalac -sourcepath the\ source\ filename.scala => error: source file 'source\' could not be found.
  • scalac -sourcepath the^ source^ filename.scala => error: source file 'source' could not be found
  • scalac the^ source^ filename.scala => error: source file 'the' could not be found

I imagine I'm missing something obvious.

Sepia
  • 447
  • 6
  • 21

0 Answers0