About

The scala compiler compiles .scala source files to .class files, like the Java compiler.

Management

scalac

The scalac command compiles one (or more) Scala source file(s) and generates Java bytecode which can be executed on any standard JVM. The Scala compiler works similarly to javac, the Java compiler of the Java SDK.

scalac HelloWorld.scala

By default scalac generates the class files into the current working directory. You may specify a different output directory using the -d option.

scalac -d classes HelloWorld.scala