Hi everyone, I hope I'm not asking in the wrong ch...
# server
m
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
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
Ahh, makes sense, makes sense. Thanks for that
a
strange, in my Spring Boot project it runs without any issue
m
What version of Spring Boot are you running?
a
Copy code
2.2.6.RELEASE
👍 2
175 Views