java - Hibernate: Unable to load class -


caused by: org.hibernate.boot.registry.classloading.spi.classloadingexception: unable load class [com.mysql.jdbc.driver] 

http://www.tutorialspoint.com/hibernate/hibernate_quick_guide.htm

i'm following hibernate guide , i'm getting error knows why?

thanks help.

you need grab mysql connector jar here , add classpath. perhaps /lib folder

if using maven, try including

<dependency>     <groupid>mysql</groupid>     <artifactid>mysql-connector-java</artifactid>     <version>5.1.6</version> </dependency> 

in pom.xml


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -