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 2 of 2

Thread: Getting ClassNotFoundException error.

  1. #1
    Junior Member
    Join Date
    Oct 2012
    My Mood
    Thanked 0 Times in 0 Posts

    Question Getting ClassNotFoundException error.

    I am working in eclipse. I am getting classnotfound error :com.mysql.jdbc.Driver. I have added mysql-connector jar file in the build path. And also tried copying mysql-connector jar file in wec-content/web-inf/lib folder.

    Please help what should I do.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,637 Times in 2,587 Posts

    Default Re: Getting ClassNotFoundException error.

    Find the jar file with the class that was not found and add it to the classpath so the java program can find the class.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. glassfish ClassNotFoundException java.lang.ClassNotFoundException: ...
    By enginco in forum JavaServer Pages: JSP & JSTL
    Replies: 2
    Last Post: June 18th, 2012, 12:18 PM
  2. ClassNotFoundException (bit weird)
    By chronoz13 in forum Exceptions
    Replies: 1
    Last Post: April 26th, 2011, 02:15 AM
  3. [SOLVED] ClassNotFoundException - Please Help
    By igniteflow in forum Exceptions
    Replies: 11
    Last Post: October 3rd, 2010, 10:50 PM
  4. Replies: 2
    Last Post: November 26th, 2009, 08:45 AM
  5. ClassNotFoundException ???
    By wolfgar in forum JDBC & Databases
    Replies: 2
    Last Post: November 20th, 2009, 01:35 PM

Tags for this Thread