Re: Problem while trying to connect to mySql server via JDBC...
Posted by: Mark Matthews
Date: December 18, 2004 02:06PM

Are you _sure_ the JVM you're running is the same as the one you've added the driver to? Most often, on Windows, the 'java' command ends up being the one in c:\windows\system, which is _not_ the same one as where you've added the driver (unfortunately, windows does not have the 'which' command like Unix, so you'll have to figure it out yourself).

One way to make _sure_ the driver is getting used is to specify the classpath on the comand-line like so:

java -cp path-to-driver-file.jar;.;%CLASSPATH% myClassName

Does it work if you do this?

Options: ReplyQuote

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.