Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   problem with JDBC for talking to Microsoft Access database using a Java Applet (http://www.programmingforums.org/showthread.php?t=2246)

captainK Feb 14th, 2005 4:49 PM

problem with JDBC for talking to Microsoft Access database using a Java Applet
 
1 Attachment(s)
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.

Moldz Feb 14th, 2005 8:43 PM

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.

captainK Feb 15th, 2005 4:22 PM

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.

avianand Mar 19th, 2005 8:30 AM

problem with JDBC for talking to Microsoft Access database using a Java Applet

Ooble Mar 20th, 2005 11:01 AM

Thank you for proving you can copy and paste.


All times are GMT -5. The time now is 6:12 PM.

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