Below are the issues that i faced during configuration of Kotlin. I am sharing this so this might be useful for some of you.
Issue 1
If you try to add plugins into eclipse to make Kotlin work, you may land into issue as “Class Not found Exception”. In that case, use the plugins from below link
GitHub – bvfalcon/kotlin-eclipse-2021: Enhanced Kotlin Plugin for Eclipse
Issue 2
After you use above link to install kotlin. the classnot found exception will go away but Another error as
“Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper ‘-jvm-target’ option” will come up . In that case, go to Kotlin compilter options and change the target version to 1.8
When you run your main application, you will land into below error
@Configuration class may not be final. Remove the final modifier to continue
Issue 3
Add the keyword open before the class and it should work
Some useful link
Kotlin Plugin for Eclipse | Eclipse Plugins, Bundles and Products – Eclipse Marketplace
Comments
Post a Comment