Can't start a main class

IDEA IU-117.46 Kotlin plug-in: 0.1.2300

Similar problem as before but I can’t solve it this time: I can’t run a simple main class.

The “Run” configuration menu item doesn’t appear when I right click on the class. I tried creating the configuration manually but even after specifying the main class and “Ok”, that configuration never appears under the Kotlin tab of the configurations.

What could I do to investigate this?

After pressing OK:

I didn't think the JVM supported main() methods as instance methods? Thought they had to be static (at the bytecode level); so either top level functions, or maybe methods on an object (though I've not tried the latter yet).

Kotlin plug-in: 0.1.2300 ?! http://www.jetbrains.com/kotlin/eap-plugin-repository/updatePlugins.xml still points to Kotlin plugin 0.1.209. Am I missing something or is 0.1.2300 a wrong version number?

I found Kotlin plug-in 0.1.2300 here. Sorry for bothering...

Right, a main() function can only be package-level in Kotlin

Right, a main() function can only be package-level in Kotlin

I did not realize this, thanks Andrey and James.