在JDK 11的IntelliJ IDEA中获取NoClassFoundException:java.sql.SQLException [英] Getting noclassfoundexception : java.sql.SQLException in intellij idea for jdk 11

查看:276
本文介绍了在JDK 11的IntelliJ IDEA中获取NoClassFoundException:java.sql.SQLException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最新版本的Intellij Idea,并将jdk设置为11。执行我的项目时,它将引发异常noclassfoundexception:java.sql.SQLException。

I am using latest version of Intellij Idea and set jdk as 11. When I execute my project it throws exception noclassfoundexception : java.sql.SQLException.

在Java中我在Intellij中的编译器设置中提到的项目字节码版本为11。在项目结构设置中,我也将模块jdk设置为11。

In java compiler settings in Intellij I have mentioned project bytecode version as 11. In project structure settings too, I have set the module jdk as 11.

推荐答案

尝试将命令行缩短方法更改为 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

这篇关于在JDK 11的IntelliJ IDEA中获取NoClassFoundException:java.sql.SQLException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆