Tommi Lepola
06/18/2023, 10:20 AMException in thread "Main" java.lang.NoClassDefFoundError: kotlin/jdk7/AutoCloseableKt
. It seems to be related to the newest Ktor release (2.3.1) and the H2 driver, because with Ktor 2.2.4 the app runs just fine, and so it does with 2.3.1 and PostgreSQL driver.
Here's the full stacktrace.
Any ideas?Aleksei Tirman [JB]
06/19/2023, 6:25 AMTommi Lepola
06/19/2023, 7:23 AMAleksei Tirman [JB]
06/19/2023, 9:46 AMTommi Lepola
06/19/2023, 10:14 AMlepol@tommi-desktop MINGW64 ~
$ java --version
openjdk 17.0.6 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)
Maven 3.9.2:
$ mvn --version
Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.2
Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-17.0.6.10-hotspot
Default locale: fi_FI, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
There's a bit more recent version of JDK available (17.0.7+7), I might try that. Which JDK did you run it successfully with?Aleksei Tirman [JB]
06/19/2023, 10:16 AMTommi Lepola
06/19/2023, 10:17 AMAleksei Tirman [JB]
06/19/2023, 10:17 AMTommi Lepola
06/19/2023, 10:18 AM