dmusov12021-03-23 16:47:53
IntelliJ IDEA
dmusov1, 2021-03-23 16:47:53

After updating the Kotlin language, a NoClassDefFoundError error appeared, how to fix it?


Kotlin: [Internal Error] java.lang.NoClassDefFoundError: Could not initialize class com.intellij.pom.java.LanguageLevel

Maybe someone faced such a problem, after updating to the latest release, there was such a problem

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Dmitry Roo, 2021-03-23

Try: File -> Invalidate caches / Restart...

Kir Mozor, 2021-05-26

IntelliJ IDEA told me that I need to install the Kotlin plugin. I installed it and the
error disappeared

fun main (args: Array<String>){
    println("Hello, World!")

DavidMarkovich1218, 2021-07-25

If it's still relevant - I created the project not like in the book, but through Gradle -> Kotlin / JVM. Then I waited until everything was downloaded to me, and then I created the main.kt file (I think the name can be any) along the path src -> main -> kotlin and already created an entry point there (which is fun main())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question