wood burning stoves 2.0*
The moose likes JDBC and the fly likes doubt -very urgent help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "doubt -very urgent help needed" Watch "doubt -very urgent help needed" New topic

doubt -very urgent help needed

Ranch Hand

Joined: Nov 08, 2000
Posts: 52
i have been trying to writing a java program to acess the values of the tables that are stored in an another site(not on my pc ) in the form of mysql tables.my question is that do i require to have a mysql driver in my odbc driver(i.e home computer) to run this code sucessfully .i at present dont have the driver installed ,whenever i complied and run the code i am getting an error -
Class not foundException rg:gjt.mm.mysql.Driver
Please answer my question
Thanks in advance
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Do you have a typo in your Class.forName line?
If you cut and pasted the error, it looks like you have a colon instead of a period org.gjt.mm.mysql.Driver instead of org:gjt.mm.mysql.Driver
Also, did you download the mySQL driver from gjt.org?
Sorry, gotta cover the simple questions.
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
Yeah, that's what it looks like to me. Make sure the driver (in jar format) is in your classpath as well.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: doubt -very urgent help needed
Similar Threads
Help needed with JDBC driver
Classpath to mysql-driver
loading driver in JSP
javaw.exe -classpath?
MySQL Error - no driver