How can I solve a problem with Eclipse forName?

J.T. Peirce May 8, 2011
Pinterest Stumbleupon Whatsapp

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.

Ads by Google

  1. Anonymous
    May 11, 2011 at 12:22 pm

    Place mysql-connector-java-5.1.6-bin.jar to the Apache Tomcat 6.0.18lib folder
    http://stackoverflow.com/questions/2353141/mysql-jdbc-driver-and-eclipse-classnotfoundexception-com-mysql-jdbc-driver