How are you trying to run your program? Seems that you have wrong class provided in Run configuration. To quickly run your program, you need to either invoke "Run/Debug" actions in context menu of your source file or create new Run configuration of "Kotlin" type with main class "hello.namespace" (more common, "<package with main class>.namespace").