Hi, I'm trying to connect to db from a stand-alone class (have done it many times with
Tomcat); so copied mysql-connector-java-3.1.6-bin.jar from Tomcat/common/lib to jre/lib and put it in the classpath at compile time, thus:
javac -classpath c:\j2sdk1.4.2_11\jre\lib\mysql-connector-java-3.1.6-bin.jar;. conn.java
compiles fine but at runtime get ClassNotFoundException: com.mysql.jdbc.Driver
why wouldn't it find com.mysql.jdbc.Driver? I know it's inside that connector jar I put in the classpath..
-v