D
D
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?

6059f14317a83620422687.png

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)
D
Dmitry Roo, 2021-03-23
@xez

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

K
Kir Mozor, 2021-05-26
@150_Kirill_150

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!")
}

D
DavidMarkovich1218, 2021-07-25
@DavidMarkovich1218

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