启动Jmix项目异常,WebServerException: Unable to start embedded Tomcat

环境: JDK 17、SQL Server2016、 Jmix 1.2.NIGHTLY824-213、IDEA 2022.1

默认创建Jmix项目,切换SQL Servers2016数据库,启动Jmix项目报错,

步骤如下:
image

image

报错信息如下:
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

请问下这个怎么解决?

你点一下这个看看是什么错?
image

这个错误信息,
Caused by: java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

现在环境 JDK 17,

image

image

请问下怎么处理这个呢?

这个原因是你运行的环境 JDK 是 11 的,而不是 17。可以看看这个帖子内容配一下:

好的,谢谢 已解决