Stuck at "Hello World" with IntelliJ IDEA 9.0.1 for Scala
From your screenshot it looks like you were using:
class hello {
def main(a: Array[String]) = println("got args: " + a)
}
The main method has to be on an object to support a main method.
Capitalizing the object / class name is the convention but it isn't enforced.
When you change your implementation from class to object, it works like a charm:
object Hello {
def main(a: Array[String]) = println("got args: " + a)
}
I picked up this little, but important difference here: http://sonyarouje.com/2011/03/18/running-scala-in-intellij-idea-10/