Home >Database >Mysql Tutorial >java.lang.ClassNotFoundException: com.mysql.jdbc_MySQL

java.lang.ClassNotFoundException: com.mysql.jdbc_MySQL

WBOY
WBOYOriginal
2016-06-01 13:10:321294browse

mapreduce中操作mysql时显示java.lang.RuntimeException: java.lang.ClassNotFoundException: com.mysql.jdbcmysql-connector-java-5.1.6-bin要导入工程中eclipse  中只要右击工程文件夹属性选项-Java  Build Path-Libraries-Add Extenal JARs 添加即可……加入后可在.classpath文件中看到<classpathentry path="C:/usr/local/mysql-connector-java-5.0.4-bin.jar" kind="lib"/>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn