• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

about myodbc

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i use mysql server
but i can't connect my db with my javabean
the error message is:
can't find suitable driver;
however, i have already install myodbc on my computer.
and i have already test the data souce.nothing wrong.
i guess the problem is that
mysql sever can't find myodbc driver.
but myodbc driver has found the database.
what to do next?
thank you!
 
Author
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you got the driver in your classpath?
S
 
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
Without more information it's hard to say, but this is usually a case of the jar not put in the right place. In many application servers, it doesn't make a difference if you put it on the CLASSPATH, application servers don't use it.
In Tomcat, you need to put the jar in the [ TOMCAT_HOME ]/common/lib directory.
This makes it visible to all web-apps running on the server. If you only want it visible to a specific web-app, put it in the [ TOMCAT_HOME ]/webapps/[ CONTEXT ]/web-inf/lib directory.
Dave
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic