Use the command java -jar fernflower.jar file_name.class to get the converted Java source file.Īlthough we can use both methods to convert a Kotlin file to a Java file, it is recommended to use IntelliJ IDEA or Android Studio. Use FernFlower to get the fernflower.jar file (To get the jar file, run the Gradle build after downloading the FernFlower project).Compile the Kotlin source file using the kotlinc file_name.kt command to create the class file.We can do this by following the steps below: Hence, if we don’t want to use IntelliJ IDEA or Android Studio for conversion, we can directly use FernFlower. The IntelliJ decompile option uses the FernFlower to generate the back-end code. Convert Kotlin Code to Java Code Using FernFlower The process to convert Kotlin to Java in IntelliJ IDEA is the same.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |