'How to compile mixed kotlin and java from command line?

I hava two files:

A.java

class A{

}

B.kt

class B:A(){

}

I try to compile B.kt like this:

kotlinc -cp A.java B.kt

But compile error:

WARN: zip END header not found: A.java
B.kt:3:10: error: unresolved reference: A

How show I compile B.kt ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source