MySQL Forums :: Connector/JDBC and Java :: How to set Classpath for MySQL


Advanced Search

How to set Classpath for MySQL
Posted by: lalit kumar ()
Date: March 24, 2007 02:34AM

Hi

I want to connect to my mySQL db with a java program , but I don't know how to install the mySQL connector driver. Can anyone help me? or indicate somewhere where I might find the answer?
And how to set Classpath for MySQL.
my program gives an exception ClassNotFound.

Exception :com.mysql.jdbc.Driver
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at Files.main(Files.java:352)

Plz help me

Thanx
Lalit

Options: ReplyQuote


Subject Written By Posted
How to set Classpath for MySQL lalit kumar 03/24/2007 02:34AM
Re: How to set Classpath for MySQL Dennis Gellert 04/11/2007 11:52PM
Re: How to set Classpath for MySQL Mark Matthews 04/12/2007 08:26AM
Re: How to set Classpath for MySQL Tony Sadi 12/04/2007 05:39AM
Re: How to set Classpath for MySQL Pratap Saini 01/29/2008 04:16AM
Re: How to set Classpath for MySQL david bennett 01/30/2008 01:09AM
Can't get Connection, missing classpath? Bo Vargas 09/12/2008 09:18AM
Re: How to set Classpath for MySQL rakee dpudi 08/28/2008 10:58PM


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.