It's probably because you have the mysql.jar configured in your classpath for Eclipse (that's part of the process when you set up a datasource in the Eclipse database explorer, for example), but it's not in the classpath in your windows environment. You can set the CLASSPATH env variable to include the location of the mysql.jar file, or use the -cp (or -classpath) option with your java command to indicate the location of the mysql.jar file.
dononelson
Junior Poster in Training
62 posts since Mar 2010
Reputation Points: 13
Solved Threads: 15
Skill Endorsements: 0