Java数据库操作,报java.sql.SQLException: No suitable driver found for...

错误描述

  在做JavaRMI的实验过程中,涉及到了数据库的操作,一直报错。错误信息截图:
Java数据库操作,报java.sql.SQLException: No suitable driver found for...  一开始没有想到是驱动的问题,也就没有太在意。可反复尝试,就是不成功。就因为我的项目里面没有添加数据库驱动(mysql-connector-java-5.1.5-bin.jar)。这其实是一个很小的错误,也是比较低级的错误,但真的很容易遗忘,我废了不少功夫。
  附上JavaProject添加jdbc驱动包方法:
  右键项目,点击Build Path。
Java数据库操作,报java.sql.SQLException: No suitable driver found for...
Java数据库操作,报java.sql.SQLException: No suitable driver found for...Java数据库操作,报java.sql.SQLException: No suitable driver found for...


声明:
文章内容仅供参考。
如因本人发布的作品内容涉及版权或存在其他问题,请联系我进行删除。
谢谢浏览!