I am using the Eclipse Scala plugin. I created a simple program:
object HelloWorld {
override def main(args: Array[String]) {
println("Hello World!")
}
}
I can run this program from the menu: Run as -> Scala Application
However with this code
object HelloWorld extends Application {
println("Hello world!")
}
I get this error message: "The selection does not contain the main type"
Does anyone know how to solve this?
source
share