This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Trying to run the program below (or any other one) gets the error message "Class 'Timer' does not have a main method" which it obviously does. Any ideas what's wrong? object Timer { def oncePerSecond(callback: () => unit) { while (true) { callback(); Thread sleep 1000 } } def timeFlies() { println("time flies like an arrow...") } def main(args: Array[String]) { oncePerSecond(timeFlies) } }
I created a new project, cut and paste in the code, and it ran first time, so its environmental. I'm not if that helps at all.
Should have been fixed by new rewritten scala.editor