database connection

Hi all,

I have a little code that connects to mysql database.

My program just runs fine and gets connected to database, but when I make a jar file for that class, it shows me 'class not found exception for jdbc driver'. I have placed mysql-connector-java-3.0.16-ga-bin in jre/lib/ext folder.

Appreciate any suggesstions..................

Thank you...........

[391 byte] By [awlada] at [2007-10-2 18:54:11]
# 1
Don't put anything in the ext directory, that's a really bad way of doing things.Instead, add the driver jar to your classpath: http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
sjasjaa at 2007-7-13 20:31:50 > top of Java-index,Java Essentials,Java Programming...