Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 14th, 2005, 5:49 PM   #1
captainK
Newbie
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0 captainK is on a distinguished road
Unhappy problem with JDBC for talking to Microsoft Access database using a Java Applet

Hi all,

For my undergraduate dissertation I am programming in Java and using JDBC to talk to a MS Access database. I have managed to talk to the database and extract the data without any problems using a normal Java application. But as soon as I then convert this exact code to become an Applet then it errors out and complains about the JDBC driver.

The error I get when I run the Applet is:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at SelectApp3.start(SelectApp3.java:31)
at sun.applet.AppletPanel.run(AppletPanel.java:377)
at java.lang.Thread.run(Thread.java:534)


My code is in the attachment to this thread.
Thanks,
Phil.
Attached Files
File Type: txt SelectApp3.txt (1.7 KB, 57 views)
captainK is offline   Reply With Quote
Old Feb 14th, 2005, 9:43 PM   #2
Moldz
Programmer
 
Moldz's Avatar
 
Join Date: Feb 2005
Posts: 54
Rep Power: 4 Moldz is on a distinguished road
I think the machine running the applet would need to have an ODBC connection setup. I'm not even sure if an applet could use the machine's ODBC connection because of security restrictions.
Moldz is offline   Reply With Quote
Old Feb 15th, 2005, 5:22 PM   #3
captainK
Newbie
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0 captainK is on a distinguished road
Yeah, have set up the ODBC connection and everything like that as i had it working for the Java App - and nothings changed since then as far as i know so it cant be that.
captainK is offline   Reply With Quote
Old Mar 19th, 2005, 9:30 AM   #4
avianand
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 avianand is on a distinguished road
problem with JDBC for talking to Microsoft Access database using a Java Applet
avianand is offline   Reply With Quote
Old Mar 20th, 2005, 12:01 PM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Thank you for proving you can copy and paste.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC