Press enter to see results or esc to cancel.

java.lang.ClassNotFoundException: com.mysql.jdbc:Driver [Solved]

  1. The Exception in Java Project is shown below.
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClassInternal(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at Simple.MyProg.main(
  2. Solution,
    Download the Mysql Jar from below link.
  3. Add the jar to Classpath. Check the below link to add the Jar in Classpath in Eclipse
  4. See an Example Projects
    Java program to connect to mysql database
    How to connect to remote MySql database from NetBeans


Leave a Comment