I'm trying to connect to mysql from a java app I'm writing in eclipse, and on the Class.forName("com.mysql.jdbc.Driver") line I always get ClassNotFoundException. I have added the mysql-connector-java.jar to my project using 'Add External Jars' and in my package explorer I see the com.mysql.jdbc.Driver class

I've also added the jar file to my environment's CLASSPATH (which I understand Eclipse does not use) and that didn't help.