title: How to compile Kotlin to include jar of Java with command line?
body: <p>I want to include jar of Java to Kotlin. I tried like below, but I had error.</p>
  
  <pre><code>javac -encoding utf-8 javasorce/test/JavaTestClass.java
  jar cvf javasorce/test/JavaTestClass.jar javasorce/test/JavaTestClass.class
  
  kotlinc kotlin/CallJavaTestClass.kt -cp javasorce/test/JavaTestClass.jar -include-runtime -d kotlin/CallJavaTestClass.jar
  
  java -jar kotlin/CallJavaTestClass.jar
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: 
  javasorce/test/JavaTestClass at CallJavaTestClassKt.main(CallJavaTestClass.kt:5)
          Caused by: java.lang.ClassNotFoundException: javasorce.test.JavaTestClass
                  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
                  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
                  ... 1 more
  </code></pre>
  
  <p>I am using like below directories:</p>
  
  <pre><code>root
  |-javasorce
  | |-test
  |   |-JavaTestClass.java
  |-kotlin
    |-CallJavaTestClass.kt
  </code></pre>
  
  <p>Please tell me if there is solution.</p>