• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

doubt -very urgent help needed

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic