java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Ask Ubuntu | Jason | 6 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Compiling a Java project on Unix using external library mysql-connector-java-5.1.24-bin.jar

    Stack Overflow | 4 years ago | Nexus
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  4. 0

    Maven not setting classpath for dependencies properly

    Stack Overflow | 6 years ago | Matthew
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

  1. jokester 2 times, last 2 weeks ago
  2. Andreas Häber 1 times, last 3 weeks ago
  3. Bugger 5 times, last 3 weeks ago
  4. marcbouvierdav 2 times, last 4 weeks ago
  5. jf-ast 2 times, last 4 weeks ago
60 more registered users
35 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.mysql.jdbc.Driver

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    7. java.lang.Class.forName0(Native Method)
    8. java.lang.Class.forName(Class.java:186)
    8 frames
  3. Unknown
    prog_users.main
    1. prog_users.main(prog_users.java:24)
    1 frame