.
I think the solution to resolve this is to downgrade the JDK version to 11 after searching through the internet.
What should I do to resolve this issue if I insist to use JDK 17.
I am using WSL2, with the following setup for my console application.
Major version 61 is Java 17.
So your error means you are trying to use a class compiled for Java 17 with some older Java at runtime.
Where exactly do you get that error?
And has it actually anything to do with Kotlin?