sreedevi langoju wrote:I added all the necessary jar files in class path . I added mysql-connector jar also in classpath.
But when i am trying run , i am getting this error :
ERROR: No suitable driver found for jdbc:mysql://localhost:3306/sreedb
Tim Holloway wrote:I'm not sure that includes the library jars, however.
sreedevi langoju wrote:Please check the attached screenshot .
Please let me know how to fix this error.
Roel De Nijs wrote:I see on your screenshot that you seem to have two mysql-connector JARs and that's weird.
sreedevi langoju wrote:I tried to execute by removing the extra mysql-connector jar and adding all the jar files to run configurations of my client class, but still i was not able to connect to my db.
So ,i deleted all the old jar files and downloaded latest hibernate5 version jars and added all jar files which are in lib/ required , lib/java8, lib/jpa , lib/envers folders to my classpath of the project as a library.
Finally ... now i am able to connect to my database and do the CRUD operations ..
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
how do I do my own kindle-like thing - without amazonhttps://coderanch.com/t/711421/engineering/kindle-amazon