Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

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

  1. #1
    Junior Member
    Join Date
    May 2010
    Thanked 0 Times in 0 Posts

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

    Hai all,

    i have problem when i run jar on windows. i user this command java -jar server.jar. but the following error show. the com.mysql.jdbc.Driver class not found. can you help me??

  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    United Kingdom
    My Mood
    Thanked 293 Times in 226 Posts
    Blog Entries

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

    The error is very self explanatory.

    The MySQL JDBC Driver cannot be found. Have you installed it correctly?

    MySQL :: Download Connector/J
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Thanked 0 Times in 0 Posts

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

    Check this out:

    Source Code issues: Class not found Exception for com.mysql.jdbc.Driver

Similar Threads

  1. Cannot locate sun.jdbc.odbc.jbcOdbc driver
    By birdlover2010 in forum JDBC & Databases
    Replies: 7
    Last Post: November 6th, 2010, 02:57 PM
  2. setting JDBC driver steps
    By planmaster in forum JDBC & Databases
    Replies: 1
    Last Post: November 6th, 2010, 02:02 PM
  3. How to instal JDBC driver package in eclipse
    By sathish in forum JDBC & Databases
    Replies: 2
    Last Post: September 2nd, 2010, 10:09 AM
  4. How to install a JDBC driver in Eclipse? And where to take it from?
    By noFear in forum Java Theory & Questions
    Replies: 2
    Last Post: August 17th, 2010, 10:51 AM
  5. Replies: 2
    Last Post: November 3rd, 2009, 06:28 AM