Forums Register Login

No suitable driver error

+Pie Number of slices to send: Send
Hi,
I am trying to connect to a database and display the results in an applet using JTable. I am using a TableModel in which I have the following statements:

When I try to view the applet from the browser, I get an error in Java console saying "Cannot connect to this database: No suitable Driver". I tried a simple java program that connects to a databse and displays the results at stdout and I was successful. I am unable to figure out what might be the problem. Could anyone
please help me out?
Thanks in advance
Chak
+Pie Number of slices to send: Send
Hi,
No suitable driver found, => that the driver classes are not there in the classpath, check for classpath properly.
Moreover the database must reside on the same machine from where the applet originated.
Cheers
Durga

Originally posted by Chak Terlapu:
[B]Hi,
I am trying to connect to a database and display the results in an applet using JTable. I am using a TableModel in which I have the following statements:

When I try to view the applet from the browser, I get an error in Java console saying "Cannot connect to this database: No suitable Driver". I tried a simple java program that connects to a databse and displays the results at stdout and I was successful. I am unable to figure out what might be the problem. Could anyone
please help me out?
Thanks in advance
Chak [/B]


+Pie Number of slices to send: Send
Hi,
I think the problem is that the database resides on a different machine from where the applet originates. Is there a fix to this problem. Can we make it work if the database is on a different machine. Is it because of applet "security issues" that we might not be able to do this. Could you answer these questions please
Thanks
Chak
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1035 times.
Similar Threads
JDBC
JTable
JTable
JTable
TableModel-unable to locate error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:35:00.