简体   繁体   中英

JDBC ClassNotFound even with MySQL library

So I am trying to connect to my server, I had it working before but now I moved to a different machine it's not working as you can see below.

在此处输入图片说明

I have added the MySQL driver into my path and I'm not sure what the problem could be.

Any ideas?

Thanks.

您确实已经定义了MySQL连接器是您的项目的库,但是您还需要在项目结构的“模块”选项卡上将其作为模块依赖项添加。

If you haven't dependency management such as maven (gradle, etc), create lib folder in project root folder. Move jar to lib folder and right click on it and select "Add as library". This should help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM