title: kotlinc compile multiple files/dependencies/imports
body: <p>I want to compile a kotlin file with a dependency / import</p>
  <p>package_a.kt</p>
  <pre class="lang-kotlin prettyprint-override"><code>// file: package_a.kt
  package package_a
  
  fun function_from_package_a(){
      println(&quot; hurray function_from_package_a was called ! &quot;)
  }
  </code></pre>
  <p>main.kt</p>
  <pre class="lang-kotlin prettyprint-override"><code>// file: main.kt
  
  import package_a.*
  
  fun main() {
      
      function_from_package_a();
  
      println(&quot;main function  was executed&quot;)
  }
  </code></pre>
  <p>compiling is working with</p>
  <pre><code>$ kotlinc package_a.kt -d package_a.jar               
  $ kotlinc main.kt -classpath package_a.jar -d main.jar
  </code></pre>
  <p>but when i run the main.jar with java, i will get an error:</p>
  <pre><code>$ java -jar main.jar
  Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: package_a/Package_aKt
          at MainKt.main(main.kt:8)
          at MainKt.main(main.kt)
  Caused by: java.lang.ClassNotFoundException: package_a.Package_aKt
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          ... 2 more
  </code></pre>
  <p>does anybody know why?</p>