Scala - Compiler (scalac)

1 - About

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

3 - Management

3.1 - 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
lang/scala/compiler.txt ยท Last modified: 2017/09/06 20:15 by gerardnico