title: How to run Kotlin function in Intellij Idea
body: <p>I have created a test project aiming to start with Kotlin in IntelliJ IDEA CE.</p>
  
  <p>The IDE version and the system is  2017.1.4 Build #IC-171.4694.23, built on June 6, 2017
  JRE: 1.8.0_112-release-736-b21 x86_64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  Mac OS X 10.12.4</p>
  
  <p>There is one .kt file with a main function in it. When I right-click on it I can select Run, but I get an error form JUnit: !!! JUnit version 3.8 or later expected.</p>
  
  <p>I figured out it was about missing configuration, but I can't set up a proper one for Kotlin as well. Namely it requires a 'main class', which I don't have. Setting package name instead, as some other discussions suggest didn't help either.</p>
  
  <p>What is the proper configuration for Kotlin in IDEA?</p>
  
  <p>Thanks!</p>