https://kotlinlang.org logo
Title
m

Markus Loide

08/18/2020, 11:13 AM
Hi everyone, I hope I'm not asking in the wrong channel, but I just tried updating to Kotlin 1.4 in my Spring Boot project, but I'm seeing a
java.lang.NoClassDefFoundError: Could not initialize class kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap
. Without posting the full stacktrace, the problem arises from the
SpringApplication.run
method, so it's not some personal code that is running it. (I'm using Spring Boot 2.2.x for this)
m

marstran

08/18/2020, 11:35 AM
I guess it's because Spring Boot only supports Kotlin 1.3.x currently. See the first sentence here: https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/spring-boot-features.html#boot-features-kotlin-requirements
👍 2
m

Markus Loide

08/18/2020, 11:39 AM
Ahh, makes sense, makes sense. Thanks for that
a

andrzej

08/18/2020, 12:15 PM
strange, in my Spring Boot project it runs without any issue
m

Markus Loide

08/18/2020, 12:32 PM
What version of Spring Boot are you running?
a

andrzej

08/18/2020, 1:28 PM
2.2.6.RELEASE
👍 2