https://kotlinlang.org logo
Title
c

Chills

01/26/2020, 11:27 AM
Hi ! im new here how to setup kotlin in IntellJ IDE , have seen couple of video on youtube and read article but damn when ever i click the
Run button
it shows set configuration. Feel Intellj is really complex.
d

Dico

01/27/2020, 11:51 AM
IntelliJ is really powerful. If it shows a popup there for the configuration, it probably Marks some boxes in red that you need to provide. E.g. missing JDK.
e

Evan R.

01/27/2020, 1:21 PM
If you have a
main()
function already there should be a green arrow button in the gutter next to it. Try clicking that and it will be added as a run configuration automatically after running your program.
c

Chills

01/27/2020, 2:00 PM
there is no green button
IntelliJ may be powerful but it really aint that good. to configure some setup its hard as hell. prefer vscode 😞
m

Matteo Mirk

01/27/2020, 2:50 PM
You won’t get far with this attitude 😉 every tool has its learning curve, try to take some time to read how Intellij works, when you get used to it you’ll understand how a powerful IDE it is, I promise!
This is the button Evan was referring to. It’s located in any editor where there’s a main function.
c

Chills

01/27/2020, 8:32 PM
have spent considerable time looking for it , probably an hour or two been successful on my workplace system not so lucky on home. why so? in workplace i followed the process in home i didn't , played a lot by breaking things.
shifted to eclipse ide thank for the help!
this was the common issue when i was using intellij Error: Could not find or load main class FooKt Caused by: java.lang.ClassNotFoundException: FooKt
d

Dico

01/27/2020, 11:04 PM
What it comes down to is that you didn't want to try to understand the error so you gave up.
c

Chills

01/28/2020, 3:37 AM
there is something called
time
and every project have it.
m

Matteo Mirk

01/28/2020, 9:15 AM
If Eclipse is working for you, fine! Use what gets the job done quickly. I don’t don’t know about its Kotlin support, but I don’t think it can par with IntelliJ. Maybe try to use it again when you have some time in the future, good luck!