Techiio-author
Started by Vartika OberoiApr 24, 2022

Open
error : java.lang.ClassNotFoundException: com.mysql .jbdc.Driver

9 VIEWES 1 LIKES 0 DISLIKES SHARE
1 LIKES 0 DISLIKES 9 VIEWES SHARE

I am trying to link my java code to mySQL and successfully load the connector jar file to the to the class path but I getting error.

blogpost

1 Replies

Techiio-commentatorSoumya Parida replied 11 days ago0 likes0 dislikes

Fixing this error in Maven is bit easy, just add following dependency in your project's pom.xml file.

<dependency>

<groupId>mysql</groupId>

<artifactId>mysql-connector-java</artifactId>

<version>5.1.36</version>

</dependency>

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance