Click to See Complete Forum and Search --> : JDBC in swing


Geetika Malik
September 25th, 2000, 10:11 AM
i am writing the following code in my class which extends JApplet

class.forName(oracle.jdbc.driver.OracleDriver);




exception thrown is driver not found
but when i run this program in a simple class extending nothing the code works fine
Please tell if this is some version problem or something else. i am using java1.2
Thanks

vasgaddam
September 25th, 2000, 01:18 PM
Hi, If u try to get a connection to ur DB from ur Applet, the Applet Security Manager will not allow u to do this and will throw Exception. Thats the reason ur code is working in other case.
Am not sure how we will get connection to DB from an Applet..

Sreeni
#If this post is valid to u, then dont forget to rate it#

Andi
October 9th, 2000, 04:22 AM
Hi,

sorry, that´s not true.

I coded a sample where an Applet can read from / write into a database (MS Access).
My code is at my homepage www.lochmann.de
Click "downloads" password "dl".
I use the JDBC ODBC bridge (...and I would like to know how to connect database without the bridge....any ideas by the way?).

I think the problem is that the driver (ORACLE in this case) isn´t installed or not found...

If I am wrong, please let me know,
Andi