MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: How to set Classpath for MySQL
Posted by: Tony Sadi
Date: December 04, 2007 05:39AM

All you need to do is to download the connectors from Mysql website and set the “mysql-connector-java-5.1.5-bin.jar” in your class path, you can do the by adding it into the environment variable classpath , if you had it already defined . or you can just do the following before you run your program from the cmd line:
set CLASSPATH=% CLASSPATH%; C:\ mysql-connector-java-5.1.5-bin.jar;.

Options: ReplyQuote

Written By
Re: How to set Classpath for MySQL
December 04, 2007 05:39AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.