'Use of Kotlin classes in Java project in Eclipse

I am working on an already created Selenium framework that has Java as well as Kotlin classes. When I cloned the project in Eclipse, it stared giving me errors. The errors are for the classes where java classes are importing Kotlin classes. Due to client confidentiality, I cannot share the exact project structure, but it is something like following:

Package 1 ParentClass.kt

Package 2 ChildClass.java

The ChildClass.java extends ParentClass.kt, and the import is throwing "The import cannot be resolved" compile time error. This issue gets resolved automatically when I am using the project in IntelliJ, but in eclipse, the issue persists. Does anyone have any idea how to resolve this issue on eclipse?



Sources

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

Source: Stack Overflow

Solution Source