# Trouble running helloworld using IntelliJ plugin

**URL:** <https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287>\
**Category:** Uncategorized\
**Created:** [February 28, 2012, 3:56pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287 "2012-02-28T15:56:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ae6rt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ae6rt/32/1591_2.png) [@ae6rt](https://discuss.kotlinlang.org/u/ae6rt)\
**Post date:** [February 28, 2012, 3:56pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287/1 "2012-02-28T15:56:08Z")

</div>

Hi.&nbsp;&nbsp;

I thought I followed Hadi’s blog

[http://hadihariri.com/2012/02/17/the-kotlin-journey-part-i-getting-things-set-up/](http://hadihariri.com/2012/02/17/the-kotlin-journey-part-i-getting-things-set-up/)

to the letter in getting helloworld to run, but I’m having problems.&nbsp;&nbsp;No matter what I do, I cannot seem to find the menu entry that shows “Run namespace” so I can run the app.

Here is my Kotlin file:

import java.util.ArrayList

fun main(args : ArrayList\<String\>) : Unit {  
&nbsp;&nbsp;print(“hello ${args[0]}”)  
}

Attached is a screenshot showing my options when I bring up the menu in the editor.

I’m using EAP 114.145 11.1 and plugin version kotlin-plugin-0.1.1358.zip.

Can someone suggest what I may be doing wrong?&nbsp;&nbsp;I’ve spent an hour trying to figure this out, but to no avail.

Thank you kindly.

  
  
 [hello-kotlin.png](https://discuss.kotlinlang.org/uploads/short-url/mfFeJXQcVYBobNzddgib1x7czVw.png) (85.4 KB)

---

<div class="post-metadata">

**Author:** ![Frostman](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/frostman/32/1617_2.png) [@Frostman](https://discuss.kotlinlang.org/u/Frostman)\
**Post date:** [February 28, 2012, 4:05pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287/2 "2012-02-28T16:05:11Z")

</div>

Try to declare some package at the beginning of source file, maybe it helps.

---

<div class="post-metadata">

**Author:** ![ae6rt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ae6rt/32/1591_2.png) [@ae6rt](https://discuss.kotlinlang.org/u/ae6rt)\
**Post date:** [February 28, 2012, 4:08pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287/3 "2012-02-28T16:08:22Z")

</div>

> Frostman wrote:
> 
> Try to declare some package at the beginning of source file, maybe it helps.

I tried this:

package foo

import java.util.ArrayList

fun main(args : ArrayList\<String\>) : Unit {  
&nbsp;&nbsp;print(“hello ${args[0]}”)  
}

but it still produces no “Run namespace” in the popup.

---

<div class="post-metadata">

**Author:** ![p.Talanov](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@p.Talanov](https://discuss.kotlinlang.org/u/p.Talanov)\
**Post date:** [February 28, 2012, 4:31pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287/4 "2012-02-28T16:31:59Z")

</div>

Hi!

Try using Array\<String\> instead of ArrayList\<String\>. 🙂

---

<div class="post-metadata">

**Author:** ![ae6rt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ae6rt/32/1591_2.png) [@ae6rt](https://discuss.kotlinlang.org/u/ae6rt)\
**Post date:** [February 28, 2012, 4:43pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287/5 "2012-02-28T16:43:47Z")

</div>

Oh, my.&nbsp;&nbsp;That was it.&nbsp;&nbsp;Thank you!

Chagrined,  
Mark

---

<div class="post-metadata">

**Author:** ![ae6rt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ae6rt/32/1591_2.png) [@ae6rt](https://discuss.kotlinlang.org/u/ae6rt)\
**Post date:** [February 28, 2012, 4:47pm UTC](https://discuss.kotlinlang.org/t/trouble-running-helloworld-using-intellij-plugin/1287/6 "2012-02-28T16:47:07Z")

</div>

Incidentally, for those of you reading along now or later, to run this code from the command line, do

$&nbsp;&nbsp;java -cp lib/kotlin-runtime.jar:out/production/kotlin-lab foo.namespace  
hello
