• 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

settng up JDBC-ODBC

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You must get asked this all the time, but I searched and couldn't find what I'm looking for.
I'm trying to set up a JDBC-ODBC link for use with Access 2000, but on the line
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
I get a ClassNotFoundException.
I can compile everything OK. I don't have a CLASSPATH set, is this the problem? I'm using JDK1.3 and Win2000, the code is in an applet.
When I can get this working, I intend to have the applet accessing the DB on our web server (over the Internet).
However, I've been reading the Sun docs about setting this up, and at the end it says something about JDBC_ODBC being unsuitable for the Internet as all clients have to have various things installed on them, so should I not be using this?
(http://java.sun.com/docs/books/tutorial/jdbc/basics/applet.html, last paragraph). If I shouldn't, how do I set up an MS Access driver?
Thanks.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sun.jdbc.odbc.JdbcOdbcDriver is in rt.jar. You need rt.jar in your class path. It comes with the Java SDK.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic