Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc driver not found

 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the error message I get when my class tries to update a table in my sql server 7 database.
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
I'm running a simple update query inside of an applet (or at least trying to). I know it's not what you'd really want to do, but it's the only solution I've been able to figure out. I have an asp page that has numerous events for my user. Let's say I have an event scheduled for 9:30 and one for 10:45. My applet currently goes off at 9:30 and at 10:45 to alert the user that their event is due. However, at this point, I need to update the table and set the reminded field to true. So, this is why I'm doing it in an applet. If anyone can think of an easier way to do this portion of it outside of an applet on an NT server or something, please let me know. I'm new to java, so I'm not sure if I'm clear on the whole odbc jdbc driver issue. Does this look for the driver on the client machine where the applet is running? I assumed that and thought that the driver was part of java 1.1. If not, what do I need to do to load the driver and get this to work? Thanks a lot!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic