title: Kotlin Multi-Platform - "Error: Could not find or load main class MainKt"
body: <p>When trying to run a main function of a Kotlin JVM module in IntelliJ IDEA using the green triangle next to the function name, I get the following error:</p>
  
  <p><code>Error: Could not find or load main class MainKt</code></p>
  
  <p>Has anyone experienced this before and knows how to fix it? I've tried the suggestions on Google but they seem to not work.</p>
  
  <p>I'm pretty new to Kotlin and Kotlin MultiPlatform as well as Gradle so if you need more details, please let me know.</p>
  
  <p>Thanks in advance,
  James.  </p>
  
  <p><b>EDIT: To clarify, I can run the built .jar file from the command line but cannot run it from inside IntelliJ without this error being produced. If anyone could help so that I can debug the application, I'd be really grateful, I just can't seem to figure it out :)</b></p>