且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在JDK 11的IntelliJ IDEA中获取NoClassFoundException:java.sql.SQLException

更新时间:2022-06-25 00:46:57

尝试将命令行缩短方法更改为 JAR清单。

Try to change command line shortening method to "JAR manifest".

将项目从Java 8升级到Java 11之后,我遇到了完全相同的问题。看来这是IntelliJ IDEA错误。

I had exactly the same issue after upgrading my project from Java 8 to Java 11. It looks like it is IntelliJ IDEA bug.

从此处获取解决方案的提示: ht tps://intellij-support.jetbrains.com/hc/zh-CN/community/posts/360000022399-Error-running-a-cucumber-test-case-Caused-by-java-lang-NoClassDefFoundError-java-sql-时间

Hint for solution taken from here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000022399-Error-running-a-cucumber-test-case-Caused-by-java-lang-NoClassDefFoundError-java-sql-Time