IntelliJ Java IDE
The moose likes JDBC and the fly likes Problem using mysql jdbc driver in an applet. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "Problem using mysql jdbc driver in an applet." Watch "Problem using mysql jdbc driver in an applet." New topic
Author

Problem using mysql jdbc driver in an applet.

John Dahlstrom
Greenhorn

Joined: Dec 27, 2001
Posts: 17
Hi,
I'm having trouble using the jdbc driver for mysql (the package is called mm.mysql.jdbc-1.2c) in an applet.
I wrote a short test applet that is supposed to select some records from a table and then display them in a List. However, I'm getting a ClassNotFoundException thrown when trying to instantiate the driver class.
I created a nearly identical class that is a Frame instead of an Applet and it works fine.
I've never used jdbc with an applet before. How do I get this to work?
Thanks,
John
John Dahlstrom
Greenhorn

Joined: Dec 27, 2001
Posts: 17
Never mind,
It was an applet security thing. The mysql db was on a different host as the one I was serving the applet from. I used the same host for both and it worked.
john
 
 
subject: Problem using mysql jdbc driver in an applet.
 
Threads others viewed
mysql-jdbc driver
why i can't get the whole string when rs.getString() called ?
How to rollback multiple prepared statements
Hibernate timeout
JDBC and Linux
developer file tools