Class not found from external library
已回答
I've imported the mysql_connector_java jar file to my project library via the Project Structure menu.

When I run this code I get an error that says "java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver".
I'm not sure where else I could place the jar file for this command to work.
In my Project tab I am able to drill down --> External Libraries -->mysql-connector-java -->com.mysql -->cj -->jdbc -->Driver.java

请先登录再写评论。
Do you have an import for it? May you share a project sample?