I'm not sure why it isn't found, are you running a web application (eg Tomcat)?
One way which may fix it is to move the JAR up one directory to C:\Program Files\Java\jdk1.5.0_05\jre\lib\ext rather than in the mysql-connector-java-3.1.12 directory.
This will add the classes as an extension to the JRE and it is an incredibly brute force way to go about things. It's about as public as you can possibly make a library, which isn't necessarily a good thing. (Oh, you can also remove it from you class path since the classes will be discovered and made available in the same way that the Core Java rt.jar classes are discovered.)
But at this stage lets just aim to get it working.
Joined: Feb 08, 2004
sorry to interrup the main thread, but just to say in my case is a stand alone java app
Joined: Dec 15, 2005
are you running a web application (eg Tomcat)?
Or an IDE, such as NetBeans or Eclipse? Projects in those have a different way of setting classpath.
Maximilian Xavier Stocker
Joined: Sep 20, 2005
Originally posted by Paul Hoffman: [QB]Hi Folks, I have downloaded the MySQL/J Connector. I have updated my CLASSPATH so that it points to:
Incorrect. Configuring a classpath environment variable will have no effect on your servlet engine.
Consult the docs for your servlet engine to find out how to use additional jars to it's classpath.