Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

I have seen this question asked and answered before. However, The answer isn't working for me. Whenever I try to use the Class.forName() statement in Eclipse I always get the error: java.lang.ClassNotFoundException

It doesn't matter that the supplied info is valid. At the suggestion of other sites, I put the .jar (that I am trying to instantiate) directly into the classpath with the buildpath feature. Still doesn't work.

Any other suggestions would be greatly appreciated. The whole project is FUBAR if I can't get forName working.

MAKEUSEOF VIDEO OF THE DAY
SCROLL TO CONTINUE WITH CONTENT
2011-05-11 12:22:00
Place mysql-connector-java-5.1.6-bin.jar to the Apache Tomcat 6.0.18lib folderhttp://stackoverflow.com/questions/2353141/mysql-jdbc-driver-and-eclipse-classnotfoundexception-com-mysql-jdbc-driver