Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt -very urgent help needed

 
lp
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, that's what it looks like to me. Make sure the driver (in jar format) is in your classpath as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic