我正在将使用ktor构建的服务器部署到Heroku,但当运行命令heroku open时,会收到应用程序错误
日志中显示了以下内容
Exception in thread "main" java.lang.UnsupportedClassVersionError:com/zaxxer/hikari/HikariConfig has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
当我运行heroku run java -version时,我会收到以下消息
openjdk version "1.8.0_312-heroku"
OpenJDK Runtime Environment (build 1.8.0_312-heroku-b05)
OpenJDK 64-Bit Server VM (build 25.312-b05, mixed mode)如何在Intellij 中更改Java版本
https://stackoverflow.com/questions/70618385
复制相似问题