This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "doubt -very urgent help needed" Watch "doubt -very urgent help needed" New topic
Author

doubt -very urgent help needed

lp
Ranch Hand

Joined: Nov 08, 2000
Posts: 52
hi
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
Lakshmi
David O'Meara
Rancher

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.
Dave.
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt -very urgent help needed
 
It's not a secret anymore!