java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

后端 未结 14 2059
南方客
南方客 2020-12-28 11:46

I am getting this exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 and java.lang.NoClassDefFoundError: Coul

相关标签:
14条回答
  • 2020-12-28 12:20

    Move to JDK 11, it should work.

    0 讨论(0)
  • 2020-12-28 12:21

    In my case the combination was IntelliJ 2020.2, Kotlin 1.3.72, Maven 3.6.1 and SpringBoot 2.2.1 application. No Gradle used at all in the project.

    Somehow IntelliJ had switched to use OpenJDK14 - when reverting back to OpenJDK11 everything started to work again.

    0 讨论(0)
提交回复
热议问题