hi i have to run a scala programme. i got the error Main class not found.then i open preferences and in scala application. m开发者_开发百科ain class column no main class specified . can u please tell me what must i have to fill in that colummn to run my programme.please help me.thanks in advance
Can you provide any extra information?
I've just created a Scala project, right click new Scala Project. Keep all defaults. Created the following object
object HelloWorld {
def main(args: Array[String]): Unit = { println("Hello World!") }
}
Right click on the file in the Package Explorer and select "Run As"
-> "Scala Application"
I'm using Eclipse Version: 3.5.2 Build id: M20100211-1343
Plugin version 1.0.0.201011220809
Check you are in the Scala Perspective and not Java.
精彩评论