Scala - Scala Command (Execute Bytecode)

Card Puncher Data Processing

About

The scala command executes the generated bytecode.

Syntax

scala HelloWorld

scala allows us to specify command options, such as the -classpath (alias -cp) option:

scala -cp classes HelloWorld

The argument of the scala command has to be a top-level object.





Discover More
Card Puncher Data Processing
Scala - Getting Started (Hello World)

Getting started page with an HelloWorld example and some documentation. Create a main HelloWorld object: Run it interactively: Compile it: Run the compile code: In a maven project,...



Share this page:
Follow us:
Task Runner