How did you install MySQL? Does it work from the command line? How did you install the driver? Have you got the MySQL manual, which has a section about installing Java™ and JDBC drivers? How did you install the driver? How did you add it to your classpath?
If you are simply using -cp . you will probably need to use an additional classpath entry and it will work.